diff --git a/flyteidl/clients/go/admin/client.go b/flyteidl/clients/go/admin/client.go index 85476ab8ba..521b6e1e4d 100644 --- a/flyteidl/clients/go/admin/client.go +++ b/flyteidl/clients/go/admin/client.go @@ -6,6 +6,7 @@ import ( "crypto/x509" "errors" "fmt" + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact" grpcRetry "github.com/grpc-ecosystem/go-grpc-middleware/retry" diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go index 4a2b2c25f3..f11ef1adfe 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go @@ -160,3 +160,99 @@ func (_m *AsyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTas return r0, r1 } + +type AsyncAgentServiceClient_GetTaskLogs struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_GetTaskLogs) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentServiceClient_GetTaskLogs { + return &AsyncAgentServiceClient_GetTaskLogs{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTaskLogs { + c_call := _m.On("GetTaskLogs", ctx, in, opts) + return &AsyncAgentServiceClient_GetTaskLogs{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskLogsMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTaskLogs { + c_call := _m.On("GetTaskLogs", matchers...) + return &AsyncAgentServiceClient_GetTaskLogs{Call: c_call} +} + +// GetTaskLogs provides a mock function with given fields: ctx, in, opts +func (_m *AsyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.GetTaskLogsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) *admin.GetTaskLogsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskLogsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceClient_GetTaskMetrics struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_GetTaskMetrics) Return(_a0 *admin.GetTaskMetricsResponse, _a1 error) *AsyncAgentServiceClient_GetTaskMetrics { + return &AsyncAgentServiceClient_GetTaskMetrics{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", ctx, in, opts) + return &AsyncAgentServiceClient_GetTaskMetrics{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskMetricsMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", matchers...) + return &AsyncAgentServiceClient_GetTaskMetrics{Call: c_call} +} + +// GetTaskMetrics provides a mock function with given fields: ctx, in, opts +func (_m *AsyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.GetTaskMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskMetricsRequest, ...grpc.CallOption) *admin.GetTaskMetricsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskMetricsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskMetricsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go index 722d6731ff..1803e286eb 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go @@ -137,3 +137,85 @@ func (_m *AsyncAgentServiceServer) GetTask(_a0 context.Context, _a1 *admin.GetTa return r0, r1 } + +type AsyncAgentServiceServer_GetTaskLogs struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_GetTaskLogs) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentServiceServer_GetTaskLogs { + return &AsyncAgentServiceServer_GetTaskLogs{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskLogs(_a0 context.Context, _a1 *admin.GetTaskLogsRequest) *AsyncAgentServiceServer_GetTaskLogs { + c_call := _m.On("GetTaskLogs", _a0, _a1) + return &AsyncAgentServiceServer_GetTaskLogs{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskLogsMatch(matchers ...interface{}) *AsyncAgentServiceServer_GetTaskLogs { + c_call := _m.On("GetTaskLogs", matchers...) + return &AsyncAgentServiceServer_GetTaskLogs{Call: c_call} +} + +// GetTaskLogs provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) GetTaskLogs(_a0 context.Context, _a1 *admin.GetTaskLogsRequest) (*admin.GetTaskLogsResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetTaskLogsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest) *admin.GetTaskLogsResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskLogsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskLogsRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceServer_GetTaskMetrics struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_GetTaskMetrics) Return(_a0 *admin.GetTaskMetricsResponse, _a1 error) *AsyncAgentServiceServer_GetTaskMetrics { + return &AsyncAgentServiceServer_GetTaskMetrics{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskMetrics(_a0 context.Context, _a1 *admin.GetTaskMetricsRequest) *AsyncAgentServiceServer_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", _a0, _a1) + return &AsyncAgentServiceServer_GetTaskMetrics{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskMetricsMatch(matchers ...interface{}) *AsyncAgentServiceServer_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", matchers...) + return &AsyncAgentServiceServer_GetTaskMetrics{Call: c_call} +} + +// GetTaskMetrics provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) GetTaskMetrics(_a0 context.Context, _a1 *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetTaskMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskMetricsRequest) *admin.GetTaskMetricsResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskMetricsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskMetricsRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc index 61aebda83d..85de60a3be 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc @@ -25,7 +25,10 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::proto extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; namespace flyteidl { namespace admin { class TaskExecutionMetadata_LabelsEntry_DoNotUseDefaultTypeInternal { @@ -94,6 +97,22 @@ class ListAgentsResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ListAgentsResponse_default_instance_; +class GetTaskMetricsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskMetricsRequest_default_instance_; +class GetTaskMetricsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskMetricsResponse_default_instance_; +class GetTaskLogsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskLogsRequest_default_instance_; +class GetTaskLogsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskLogsResponse_default_instance_; } // namespace admin } // namespace flyteidl static void InitDefaultsTaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto() { @@ -331,6 +350,65 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_ListAgentsResponse_flyteidl_2f {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto}, { &scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto.base,}}; +static void InitDefaultsGetTaskMetricsRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskMetricsRequest_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskMetricsRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskMetricsRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_GetTaskMetricsRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetTaskMetricsRequest_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsGetTaskMetricsResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskMetricsResponse_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskMetricsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskMetricsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetTaskMetricsResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetTaskMetricsResponse_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_ExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto.base,}}; + +static void InitDefaultsGetTaskLogsRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskLogsRequest_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskLogsRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskLogsRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetTaskLogsRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetTaskLogsRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsGetTaskLogsResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskLogsResponse_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskLogsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskLogsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetTaskLogsResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetTaskLogsResponse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + void InitDefaults_flyteidl_2fadmin_2fagent_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); @@ -348,9 +426,13 @@ void InitDefaults_flyteidl_2fadmin_2fagent_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_GetAgentResponse_flyteidl_2fadmin_2fagent_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ListAgentsRequest_flyteidl_2fadmin_2fagent_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskMetricsRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskMetricsResponse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskLogsRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskLogsResponse_flyteidl_2fadmin_2fagent_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[16]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[20]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto[1]; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto = nullptr; @@ -475,6 +557,39 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fagent_2eproto::o ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListAgentsResponse, agents_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsRequest, resource_meta_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsRequest, queries_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsRequest, start_time_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsRequest, end_time_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsRequest, step_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskMetricsResponse, results_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsRequest, resource_meta_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsRequest, lines_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsRequest, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsResponse, results_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskLogsResponse, token_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 7, sizeof(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse)}, @@ -493,6 +608,10 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 103, -1, sizeof(::flyteidl::admin::GetAgentResponse)}, { 109, -1, sizeof(::flyteidl::admin::ListAgentsRequest)}, { 114, -1, sizeof(::flyteidl::admin::ListAgentsResponse)}, + { 120, -1, sizeof(::flyteidl::admin::GetTaskMetricsRequest)}, + { 131, -1, sizeof(::flyteidl::admin::GetTaskMetricsResponse)}, + { 137, -1, sizeof(::flyteidl::admin::GetTaskLogsRequest)}, + { 146, -1, sizeof(::flyteidl::admin::GetTaskLogsResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -512,79 +631,97 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::admin::_GetAgentResponse_default_instance_), reinterpret_cast(&::flyteidl::admin::_ListAgentsRequest_default_instance_), reinterpret_cast(&::flyteidl::admin::_ListAgentsResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskMetricsRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskMetricsResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskLogsRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskLogsResponse_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto = { {}, AddDescriptors_flyteidl_2fadmin_2fagent_2eproto, "flyteidl/admin/agent.proto", schemas, file_default_instances, TableStruct_flyteidl_2fadmin_2fagent_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fagent_2eproto, 16, file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto, + file_level_metadata_flyteidl_2fadmin_2fagent_2eproto, 20, file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto, }; const char descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto[] = "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" "dmin\032\034flyteidl/core/literals.proto\032\031flyt" - "eidl/core/tasks.proto\032\035flyteidl/core/int" - "erface.proto\032\036flyteidl/core/identifier.p" - "roto\032\035flyteidl/core/execution.proto\"\232\004\n\025" - "TaskExecutionMetadata\022A\n\021task_execution_" - "id\030\001 \001(\0132&.flyteidl.core.TaskExecutionId" - "entifier\022\021\n\tnamespace\030\002 \001(\t\022A\n\006labels\030\003 " - "\003(\01321.flyteidl.admin.TaskExecutionMetada" - "ta.LabelsEntry\022K\n\013annotations\030\004 \003(\01326.fl" - "yteidl.admin.TaskExecutionMetadata.Annot" - "ationsEntry\022\033\n\023k8s_service_account\030\005 \001(\t" - "\022^\n\025environment_variables\030\006 \003(\0132\?.flytei" - "dl.admin.TaskExecutionMetadata.Environme" - "ntVariablesEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEn" - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031E" - "nvironmentVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - "\005value\030\002 \001(\t:\0028\001\"\314\001\n\021CreateTaskRequest\022)" - "\n\006inputs\030\001 \001(\0132\031.flyteidl.core.LiteralMa" - "p\022-\n\010template\030\002 \001(\0132\033.flyteidl.core.Task" - "Template\022\025\n\routput_prefix\030\003 \001(\t\022F\n\027task_" - "execution_metadata\030\004 \001(\0132%.flyteidl.admi" - "n.TaskExecutionMetadata\"b\n\022CreateTaskRes" - "ponse\022\027\n\rresource_meta\030\001 \001(\014H\000\022,\n\010resour" - "ce\030\002 \001(\0132\030.flyteidl.admin.ResourceH\000B\005\n\003" - "res\":\n\016GetTaskRequest\022\021\n\ttask_type\030\001 \001(\t" - "\022\025\n\rresource_meta\030\002 \001(\014\"h\n\017GetTaskRespon" - "se\022*\n\010resource\030\001 \001(\0132\030.flyteidl.admin.Re" - "source\022)\n\tlog_links\030\002 \003(\0132\026.flyteidl.cor" - "e.TaskLog\"\230\001\n\010Resource\022$\n\005state\030\001 \001(\0162\025." - "flyteidl.admin.State\022*\n\007outputs\030\002 \001(\0132\031." - "flyteidl.core.LiteralMap\022\017\n\007message\030\003 \001(" - "\t\022)\n\tlog_links\030\004 \003(\0132\026.flyteidl.core.Tas" - "kLog\"=\n\021DeleteTaskRequest\022\021\n\ttask_type\030\001" - " \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n\022DeleteTas" - "kResponse\"3\n\005Agent\022\014\n\004name\030\001 \001(\t\022\034\n\024supp" - "orted_task_types\030\002 \003(\t\"\037\n\017GetAgentReques" - "t\022\014\n\004name\030\001 \001(\t\"8\n\020GetAgentResponse\022$\n\005a" - "gent\030\001 \001(\0132\025.flyteidl.admin.Agent\"\023\n\021Lis" - "tAgentsRequest\";\n\022ListAgentsResponse\022%\n\006" - "agents\030\001 \003(\0132\025.flyteidl.admin.Agent*^\n\005S" - "tate\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT" - "_FAILURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\t" - "SUCCEEDED\020\004B=Z;github.com/flyteorg/flyte" - "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" - "o3" + "eidl/core/tasks.proto\032\036flyteidl/core/ide" + "ntifier.proto\032\035flyteidl/core/execution.p" + "roto\032\033flyteidl/core/metrics.proto\032\036googl" + "e/protobuf/duration.proto\032\037google/protob" + "uf/timestamp.proto\"\232\004\n\025TaskExecutionMeta" + "data\022A\n\021task_execution_id\030\001 \001(\0132&.flytei" + "dl.core.TaskExecutionIdentifier\022\021\n\tnames" + "pace\030\002 \001(\t\022A\n\006labels\030\003 \003(\01321.flyteidl.ad" + "min.TaskExecutionMetadata.LabelsEntry\022K\n" + "\013annotations\030\004 \003(\01326.flyteidl.admin.Task" + "ExecutionMetadata.AnnotationsEntry\022\033\n\023k8" + "s_service_account\030\005 \001(\t\022^\n\025environment_v" + "ariables\030\006 \003(\0132\?.flyteidl.admin.TaskExec" + "utionMetadata.EnvironmentVariablesEntry\032" + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + "(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariabl" + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + "\314\001\n\021CreateTaskRequest\022)\n\006inputs\030\001 \001(\0132\031." + "flyteidl.core.LiteralMap\022-\n\010template\030\002 \001" + "(\0132\033.flyteidl.core.TaskTemplate\022\025\n\routpu" + "t_prefix\030\003 \001(\t\022F\n\027task_execution_metadat" + "a\030\004 \001(\0132%.flyteidl.admin.TaskExecutionMe" + "tadata\"b\n\022CreateTaskResponse\022\027\n\rresource" + "_meta\030\001 \001(\014H\000\022,\n\010resource\030\002 \001(\0132\030.flytei" + "dl.admin.ResourceH\000B\005\n\003res\":\n\016GetTaskReq" + "uest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresource_meta" + "\030\002 \001(\014\"h\n\017GetTaskResponse\022*\n\010resource\030\001 " + "\001(\0132\030.flyteidl.admin.Resource\022)\n\tlog_lin" + "ks\030\002 \003(\0132\026.flyteidl.core.TaskLog\"\230\001\n\010Res" + "ource\022$\n\005state\030\001 \001(\0162\025.flyteidl.admin.St" + "ate\022*\n\007outputs\030\002 \001(\0132\031.flyteidl.core.Lit" + "eralMap\022\017\n\007message\030\003 \001(\t\022)\n\tlog_links\030\004 " + "\003(\0132\026.flyteidl.core.TaskLog\"=\n\021DeleteTas" + "kRequest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresource_" + "meta\030\002 \001(\014\"\024\n\022DeleteTaskResponse\"3\n\005Agen" + "t\022\014\n\004name\030\001 \001(\t\022\034\n\024supported_task_types\030" + "\002 \003(\t\"\037\n\017GetAgentRequest\022\014\n\004name\030\001 \001(\t\"8" + "\n\020GetAgentResponse\022$\n\005agent\030\001 \001(\0132\025.flyt" + "eidl.admin.Agent\"\023\n\021ListAgentsRequest\";\n" + "\022ListAgentsResponse\022%\n\006agents\030\001 \003(\0132\025.fl" + "yteidl.admin.Agent\"\331\001\n\025GetTaskMetricsReq" + "uest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresource_meta" + "\030\002 \001(\014\022\017\n\007queries\030\003 \003(\t\022.\n\nstart_time\030\004 " + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\022\'\n" + "\004step\030\006 \001(\0132\031.google.protobuf.Duration\"O" + "\n\026GetTaskMetricsResponse\0225\n\007results\030\001 \003(" + "\0132$.flyteidl.core.ExecutionMetricResult\"" + "\\\n\022GetTaskLogsRequest\022\021\n\ttask_type\030\001 \001(\t" + "\022\025\n\rresource_meta\030\002 \001(\014\022\r\n\005lines\030\003 \001(\004\022\r" + "\n\005token\030\004 \001(\t\"5\n\023GetTaskLogsResponse\022\017\n\007" + "results\030\001 \003(\t\022\r\n\005token\030\002 \001(\t*^\n\005State\022\025\n" + "\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILUR" + "E\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEED" + "ED\020\004B=Z;github.com/flyteorg/flyte/flytei" + "dl/gen/pb-go/flyteidl/adminb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fagent_2eproto = { false, InitDefaults_flyteidl_2fadmin_2fagent_2eproto, descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto, - "flyteidl/admin/agent.proto", &assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto, 1842, + "flyteidl/admin/agent.proto", &assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto, 2355, }; void AddDescriptors_flyteidl_2fadmin_2fagent_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[5] = + static constexpr ::google::protobuf::internal::InitFunc deps[7] = { ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fagent_2eproto, deps, 5); + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fagent_2eproto, deps, 7); } // Force running AddDescriptors() at dynamic initialization time. @@ -5761,58 +5898,1837 @@ ::google::protobuf::Metadata ListAgentsResponse::GetMetadata() const { } -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(arena); +// =================================================================== + +void GetTaskMetricsRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_GetTaskMetricsRequest_default_instance_._instance.get_mutable()->start_time_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_GetTaskMetricsRequest_default_instance_._instance.get_mutable()->end_time_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_GetTaskMetricsRequest_default_instance_._instance.get_mutable()->step_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(arena); +class GetTaskMetricsRequest::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& start_time(const GetTaskMetricsRequest* msg); + static const ::google::protobuf::Timestamp& end_time(const GetTaskMetricsRequest* msg); + static const ::google::protobuf::Duration& step(const GetTaskMetricsRequest* msg); +}; + +const ::google::protobuf::Timestamp& +GetTaskMetricsRequest::HasBitSetters::start_time(const GetTaskMetricsRequest* msg) { + return *msg->start_time_; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(arena); +const ::google::protobuf::Timestamp& +GetTaskMetricsRequest::HasBitSetters::end_time(const GetTaskMetricsRequest* msg) { + return *msg->end_time_; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata >(arena); +const ::google::protobuf::Duration& +GetTaskMetricsRequest::HasBitSetters::step(const GetTaskMetricsRequest* msg) { + return *msg->step_; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::CreateTaskRequest >(arena); +void GetTaskMetricsRequest::clear_start_time() { + if (GetArenaNoVirtual() == nullptr && start_time_ != nullptr) { + delete start_time_; + } + start_time_ = nullptr; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::CreateTaskResponse >(arena); +void GetTaskMetricsRequest::clear_end_time() { + if (GetArenaNoVirtual() == nullptr && end_time_ != nullptr) { + delete end_time_; + } + end_time_ = nullptr; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetTaskRequest >(arena); +void GetTaskMetricsRequest::clear_step() { + if (GetArenaNoVirtual() == nullptr && step_ != nullptr) { + delete step_; + } + step_ = nullptr; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetTaskResponse >(arena); +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskMetricsRequest::kTaskTypeFieldNumber; +const int GetTaskMetricsRequest::kResourceMetaFieldNumber; +const int GetTaskMetricsRequest::kQueriesFieldNumber; +const int GetTaskMetricsRequest::kStartTimeFieldNumber; +const int GetTaskMetricsRequest::kEndTimeFieldNumber; +const int GetTaskMetricsRequest::kStepFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskMetricsRequest::GetTaskMetricsRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskMetricsRequest) } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Resource* Arena::CreateMaybeMessage< ::flyteidl::admin::Resource >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Resource >(arena); +GetTaskMetricsRequest::GetTaskMetricsRequest(const GetTaskMetricsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + queries_(from.queries_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + if (from.has_start_time()) { + start_time_ = new ::google::protobuf::Timestamp(*from.start_time_); + } else { + start_time_ = nullptr; + } + if (from.has_end_time()) { + end_time_ = new ::google::protobuf::Timestamp(*from.end_time_); + } else { + end_time_ = nullptr; + } + if (from.has_step()) { + step_ = new ::google::protobuf::Duration(*from.step_); + } else { + step_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskMetricsRequest) } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskRequest >(arena); + +void GetTaskMetricsRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskMetricsRequest_flyteidl_2fadmin_2fagent_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&start_time_, 0, static_cast( + reinterpret_cast(&step_) - + reinterpret_cast(&start_time_)) + sizeof(step_)); } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskResponse >(arena); + +GetTaskMetricsRequest::~GetTaskMetricsRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskMetricsRequest) + SharedDtor(); } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Agent* Arena::CreateMaybeMessage< ::flyteidl::admin::Agent >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Agent >(arena); + +void GetTaskMetricsRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete start_time_; + if (this != internal_default_instance()) delete end_time_; + if (this != internal_default_instance()) delete step_; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetAgentRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetAgentRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetAgentRequest >(arena); + +void GetTaskMetricsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetAgentResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetAgentResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetAgentResponse >(arena); +const GetTaskMetricsRequest& GetTaskMetricsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskMetricsRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListAgentsRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ListAgentsRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ListAgentsRequest >(arena); + + +void GetTaskMetricsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskMetricsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + queries_.Clear(); + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && start_time_ != nullptr) { + delete start_time_; + } + start_time_ = nullptr; + if (GetArenaNoVirtual() == nullptr && end_time_ != nullptr) { + delete end_time_; + } + end_time_ = nullptr; + if (GetArenaNoVirtual() == nullptr && step_ != nullptr) { + delete step_; + } + step_ = nullptr; + _internal_metadata_.Clear(); } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListAgentsResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ListAgentsResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ListAgentsResponse >(arena); + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskMetricsRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskMetricsRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bytes resource_meta = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated string queries = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskMetricsRequest.queries"); + object = msg->add_queries(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // .google.protobuf.Timestamp start_time = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_start_time(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp end_time = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_end_time(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Duration step = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_step(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskMetricsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskMetricsRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskMetricsRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // bytes resource_meta = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string queries = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_queries())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->queries(this->queries_size() - 1).data(), + static_cast(this->queries(this->queries_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskMetricsRequest.queries")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp start_time = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_start_time())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp end_time = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_end_time())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration step = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_step())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskMetricsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskMetricsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskMetricsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskMetricsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskMetricsRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->resource_meta(), output); + } + + // repeated string queries = 3; + for (int i = 0, n = this->queries_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->queries(i).data(), static_cast(this->queries(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskMetricsRequest.queries"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->queries(i), output); + } + + // .google.protobuf.Timestamp start_time = 4; + if (this->has_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::start_time(this), output); + } + + // .google.protobuf.Timestamp end_time = 5; + if (this->has_end_time()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::end_time(this), output); + } + + // .google.protobuf.Duration step = 6; + if (this->has_step()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::step(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskMetricsRequest) +} + +::google::protobuf::uint8* GetTaskMetricsRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskMetricsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskMetricsRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->resource_meta(), target); + } + + // repeated string queries = 3; + for (int i = 0, n = this->queries_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->queries(i).data(), static_cast(this->queries(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskMetricsRequest.queries"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->queries(i), target); + } + + // .google.protobuf.Timestamp start_time = 4; + if (this->has_start_time()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::start_time(this), target); + } + + // .google.protobuf.Timestamp end_time = 5; + if (this->has_end_time()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::end_time(this), target); + } + + // .google.protobuf.Duration step = 6; + if (this->has_step()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::step(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskMetricsRequest) + return target; +} + +size_t GetTaskMetricsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskMetricsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string queries = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->queries_size()); + for (int i = 0, n = this->queries_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->queries(i)); + } + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + // .google.protobuf.Timestamp start_time = 4; + if (this->has_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *start_time_); + } + + // .google.protobuf.Timestamp end_time = 5; + if (this->has_end_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *end_time_); + } + + // .google.protobuf.Duration step = 6; + if (this->has_step()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *step_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskMetricsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskMetricsRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskMetricsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskMetricsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskMetricsRequest) + MergeFrom(*source); + } +} + +void GetTaskMetricsRequest::MergeFrom(const GetTaskMetricsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskMetricsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + queries_.MergeFrom(from.queries_); + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + if (from.has_start_time()) { + mutable_start_time()->::google::protobuf::Timestamp::MergeFrom(from.start_time()); + } + if (from.has_end_time()) { + mutable_end_time()->::google::protobuf::Timestamp::MergeFrom(from.end_time()); + } + if (from.has_step()) { + mutable_step()->::google::protobuf::Duration::MergeFrom(from.step()); + } +} + +void GetTaskMetricsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskMetricsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskMetricsRequest::CopyFrom(const GetTaskMetricsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskMetricsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskMetricsRequest::IsInitialized() const { + return true; +} + +void GetTaskMetricsRequest::Swap(GetTaskMetricsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskMetricsRequest::InternalSwap(GetTaskMetricsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + queries_.InternalSwap(CastToBase(&other->queries_)); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(start_time_, other->start_time_); + swap(end_time_, other->end_time_); + swap(step_, other->step_); +} + +::google::protobuf::Metadata GetTaskMetricsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetTaskMetricsResponse::InitAsDefaultInstance() { +} +class GetTaskMetricsResponse::HasBitSetters { + public: +}; + +void GetTaskMetricsResponse::clear_results() { + results_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskMetricsResponse::kResultsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskMetricsResponse::GetTaskMetricsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskMetricsResponse) +} +GetTaskMetricsResponse::GetTaskMetricsResponse(const GetTaskMetricsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + results_(from.results_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskMetricsResponse) +} + +void GetTaskMetricsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskMetricsResponse_flyteidl_2fadmin_2fagent_2eproto.base); +} + +GetTaskMetricsResponse::~GetTaskMetricsResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskMetricsResponse) + SharedDtor(); +} + +void GetTaskMetricsResponse::SharedDtor() { +} + +void GetTaskMetricsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetTaskMetricsResponse& GetTaskMetricsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskMetricsResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetTaskMetricsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskMetricsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + results_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskMetricsResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.ExecutionMetricResult results = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ExecutionMetricResult::_InternalParse; + object = msg->add_results(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskMetricsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskMetricsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.ExecutionMetricResult results = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_results())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskMetricsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskMetricsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskMetricsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskMetricsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.ExecutionMetricResult results = 1; + for (unsigned int i = 0, + n = static_cast(this->results_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->results(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskMetricsResponse) +} + +::google::protobuf::uint8* GetTaskMetricsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskMetricsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.ExecutionMetricResult results = 1; + for (unsigned int i = 0, + n = static_cast(this->results_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->results(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskMetricsResponse) + return target; +} + +size_t GetTaskMetricsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskMetricsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.ExecutionMetricResult results = 1; + { + unsigned int count = static_cast(this->results_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->results(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskMetricsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskMetricsResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskMetricsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskMetricsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskMetricsResponse) + MergeFrom(*source); + } +} + +void GetTaskMetricsResponse::MergeFrom(const GetTaskMetricsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskMetricsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + results_.MergeFrom(from.results_); +} + +void GetTaskMetricsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskMetricsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskMetricsResponse::CopyFrom(const GetTaskMetricsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskMetricsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskMetricsResponse::IsInitialized() const { + return true; +} + +void GetTaskMetricsResponse::Swap(GetTaskMetricsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskMetricsResponse::InternalSwap(GetTaskMetricsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&results_)->InternalSwap(CastToBase(&other->results_)); +} + +::google::protobuf::Metadata GetTaskMetricsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetTaskLogsRequest::InitAsDefaultInstance() { +} +class GetTaskLogsRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskLogsRequest::kTaskTypeFieldNumber; +const int GetTaskLogsRequest::kResourceMetaFieldNumber; +const int GetTaskLogsRequest::kLinesFieldNumber; +const int GetTaskLogsRequest::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskLogsRequest::GetTaskLogsRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskLogsRequest) +} +GetTaskLogsRequest::GetTaskLogsRequest(const GetTaskLogsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + lines_ = from.lines_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskLogsRequest) +} + +void GetTaskLogsRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskLogsRequest_flyteidl_2fadmin_2fagent_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + lines_ = PROTOBUF_ULONGLONG(0); +} + +GetTaskLogsRequest::~GetTaskLogsRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskLogsRequest) + SharedDtor(); +} + +void GetTaskLogsRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetTaskLogsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetTaskLogsRequest& GetTaskLogsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskLogsRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetTaskLogsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskLogsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + lines_ = PROTOBUF_ULONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskLogsRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskLogsRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bytes resource_meta = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // uint64 lines = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_lines(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskLogsRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskLogsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskLogsRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskLogsRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // bytes resource_meta = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + // uint64 lines = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &lines_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskLogsRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskLogsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskLogsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskLogsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskLogsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->resource_meta(), output); + } + + // uint64 lines = 3; + if (this->lines() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->lines(), output); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskLogsRequest) +} + +::google::protobuf::uint8* GetTaskLogsRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskLogsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->resource_meta(), target); + } + + // uint64 lines = 3; + if (this->lines() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->lines(), target); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskLogsRequest) + return target; +} + +size_t GetTaskLogsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskLogsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + // string token = 4; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // uint64 lines = 3; + if (this->lines() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->lines()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskLogsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskLogsRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskLogsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskLogsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskLogsRequest) + MergeFrom(*source); + } +} + +void GetTaskLogsRequest::MergeFrom(const GetTaskLogsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskLogsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.lines() != 0) { + set_lines(from.lines()); + } +} + +void GetTaskLogsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskLogsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskLogsRequest::CopyFrom(const GetTaskLogsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskLogsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskLogsRequest::IsInitialized() const { + return true; +} + +void GetTaskLogsRequest::Swap(GetTaskLogsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskLogsRequest::InternalSwap(GetTaskLogsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(lines_, other->lines_); +} + +::google::protobuf::Metadata GetTaskLogsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetTaskLogsResponse::InitAsDefaultInstance() { +} +class GetTaskLogsResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskLogsResponse::kResultsFieldNumber; +const int GetTaskLogsResponse::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskLogsResponse::GetTaskLogsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskLogsResponse) +} +GetTaskLogsResponse::GetTaskLogsResponse(const GetTaskLogsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + results_(from.results_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskLogsResponse) +} + +void GetTaskLogsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskLogsResponse_flyteidl_2fadmin_2fagent_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +GetTaskLogsResponse::~GetTaskLogsResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskLogsResponse) + SharedDtor(); +} + +void GetTaskLogsResponse::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetTaskLogsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetTaskLogsResponse& GetTaskLogsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskLogsResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetTaskLogsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskLogsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + results_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskLogsResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string results = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskLogsResponse.results"); + object = msg->add_results(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskLogsResponse.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskLogsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskLogsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string results = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_results())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->results(this->results_size() - 1).data(), + static_cast(this->results(this->results_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskLogsResponse.results")); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskLogsResponse.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskLogsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskLogsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskLogsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskLogsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string results = 1; + for (int i = 0, n = this->results_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->results(i).data(), static_cast(this->results(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsResponse.results"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->results(i), output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsResponse.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskLogsResponse) +} + +::google::protobuf::uint8* GetTaskLogsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskLogsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string results = 1; + for (int i = 0, n = this->results_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->results(i).data(), static_cast(this->results(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsResponse.results"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->results(i), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskLogsResponse.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskLogsResponse) + return target; +} + +size_t GetTaskLogsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskLogsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string results = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->results_size()); + for (int i = 0, n = this->results_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->results(i)); + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskLogsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskLogsResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskLogsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskLogsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskLogsResponse) + MergeFrom(*source); + } +} + +void GetTaskLogsResponse::MergeFrom(const GetTaskLogsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskLogsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + results_.MergeFrom(from.results_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void GetTaskLogsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskLogsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskLogsResponse::CopyFrom(const GetTaskLogsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskLogsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskLogsResponse::IsInitialized() const { + return true; +} + +void GetTaskLogsResponse::Swap(GetTaskLogsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskLogsResponse::InternalSwap(GetTaskLogsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + results_.InternalSwap(CastToBase(&other->results_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata GetTaskLogsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateTaskResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Resource* Arena::CreateMaybeMessage< ::flyteidl::admin::Resource >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Resource >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Agent* Arena::CreateMaybeMessage< ::flyteidl::admin::Agent >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Agent >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetAgentRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetAgentRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetAgentRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetAgentResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetAgentResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetAgentResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListAgentsRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ListAgentsRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ListAgentsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListAgentsResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ListAgentsResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ListAgentsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskMetricsRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskMetricsRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskMetricsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskMetricsResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskMetricsResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskMetricsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskLogsRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskLogsRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskLogsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskLogsResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskLogsResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskLogsResponse >(arena); } } // namespace protobuf } // namespace google diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h index 86aeccc4b2..78238b32c1 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h @@ -37,9 +37,11 @@ #include #include "flyteidl/core/literals.pb.h" #include "flyteidl/core/tasks.pb.h" -#include "flyteidl/core/interface.pb.h" #include "flyteidl/core/identifier.pb.h" #include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/metrics.pb.h" +#include +#include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto @@ -50,7 +52,7 @@ struct TableStruct_flyteidl_2fadmin_2fagent_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[16] + static const ::google::protobuf::internal::ParseTable schema[20] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -80,6 +82,18 @@ extern GetAgentRequestDefaultTypeInternal _GetAgentRequest_default_instance_; class GetAgentResponse; class GetAgentResponseDefaultTypeInternal; extern GetAgentResponseDefaultTypeInternal _GetAgentResponse_default_instance_; +class GetTaskLogsRequest; +class GetTaskLogsRequestDefaultTypeInternal; +extern GetTaskLogsRequestDefaultTypeInternal _GetTaskLogsRequest_default_instance_; +class GetTaskLogsResponse; +class GetTaskLogsResponseDefaultTypeInternal; +extern GetTaskLogsResponseDefaultTypeInternal _GetTaskLogsResponse_default_instance_; +class GetTaskMetricsRequest; +class GetTaskMetricsRequestDefaultTypeInternal; +extern GetTaskMetricsRequestDefaultTypeInternal _GetTaskMetricsRequest_default_instance_; +class GetTaskMetricsResponse; +class GetTaskMetricsResponseDefaultTypeInternal; +extern GetTaskMetricsResponseDefaultTypeInternal _GetTaskMetricsResponse_default_instance_; class GetTaskRequest; class GetTaskRequestDefaultTypeInternal; extern GetTaskRequestDefaultTypeInternal _GetTaskRequest_default_instance_; @@ -118,6 +132,10 @@ template<> ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage<::fly template<> ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::DeleteTaskResponse>(Arena*); template<> ::flyteidl::admin::GetAgentRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetAgentRequest>(Arena*); template<> ::flyteidl::admin::GetAgentResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetAgentResponse>(Arena*); +template<> ::flyteidl::admin::GetTaskLogsRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskLogsRequest>(Arena*); +template<> ::flyteidl::admin::GetTaskLogsResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskLogsResponse>(Arena*); +template<> ::flyteidl::admin::GetTaskMetricsRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskMetricsRequest>(Arena*); +template<> ::flyteidl::admin::GetTaskMetricsResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskMetricsResponse>(Arena*); template<> ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskRequest>(Arena*); template<> ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskResponse>(Arena*); template<> ::flyteidl::admin::ListAgentsRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ListAgentsRequest>(Arena*); @@ -1974,1300 +1992,2565 @@ class ListAgentsResponse final : mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; }; +// ------------------------------------------------------------------- + +class GetTaskMetricsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskMetricsRequest) */ { + public: + GetTaskMetricsRequest(); + virtual ~GetTaskMetricsRequest(); + + GetTaskMetricsRequest(const GetTaskMetricsRequest& from); + + inline GetTaskMetricsRequest& operator=(const GetTaskMetricsRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskMetricsRequest(GetTaskMetricsRequest&& from) noexcept + : GetTaskMetricsRequest() { + *this = ::std::move(from); + } + + inline GetTaskMetricsRequest& operator=(GetTaskMetricsRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskMetricsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskMetricsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetTaskMetricsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(GetTaskMetricsRequest* other); + friend void swap(GetTaskMetricsRequest& a, GetTaskMetricsRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskMetricsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskMetricsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskMetricsRequest& from); + void MergeFrom(const GetTaskMetricsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskMetricsRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string queries = 3; + int queries_size() const; + void clear_queries(); + static const int kQueriesFieldNumber = 3; + const ::std::string& queries(int index) const; + ::std::string* mutable_queries(int index); + void set_queries(int index, const ::std::string& value); + #if LANG_CXX11 + void set_queries(int index, ::std::string&& value); + #endif + void set_queries(int index, const char* value); + void set_queries(int index, const char* value, size_t size); + ::std::string* add_queries(); + void add_queries(const ::std::string& value); + #if LANG_CXX11 + void add_queries(::std::string&& value); + #endif + void add_queries(const char* value); + void add_queries(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& queries() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_queries(); + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // bytes resource_meta = 2; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 2; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // .google.protobuf.Timestamp start_time = 4; + bool has_start_time() const; + void clear_start_time(); + static const int kStartTimeFieldNumber = 4; + const ::google::protobuf::Timestamp& start_time() const; + ::google::protobuf::Timestamp* release_start_time(); + ::google::protobuf::Timestamp* mutable_start_time(); + void set_allocated_start_time(::google::protobuf::Timestamp* start_time); + + // .google.protobuf.Timestamp end_time = 5; + bool has_end_time() const; + void clear_end_time(); + static const int kEndTimeFieldNumber = 5; + const ::google::protobuf::Timestamp& end_time() const; + ::google::protobuf::Timestamp* release_end_time(); + ::google::protobuf::Timestamp* mutable_end_time(); + void set_allocated_end_time(::google::protobuf::Timestamp* end_time); + + // .google.protobuf.Duration step = 6; + bool has_step() const; + void clear_step(); + static const int kStepFieldNumber = 6; + const ::google::protobuf::Duration& step() const; + ::google::protobuf::Duration* release_step(); + ::google::protobuf::Duration* mutable_step(); + void set_allocated_step(::google::protobuf::Duration* step); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskMetricsRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> queries_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + ::google::protobuf::Timestamp* start_time_; + ::google::protobuf::Timestamp* end_time_; + ::google::protobuf::Duration* step_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTaskMetricsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskMetricsResponse) */ { + public: + GetTaskMetricsResponse(); + virtual ~GetTaskMetricsResponse(); + + GetTaskMetricsResponse(const GetTaskMetricsResponse& from); + + inline GetTaskMetricsResponse& operator=(const GetTaskMetricsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskMetricsResponse(GetTaskMetricsResponse&& from) noexcept + : GetTaskMetricsResponse() { + *this = ::std::move(from); + } + + inline GetTaskMetricsResponse& operator=(GetTaskMetricsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskMetricsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskMetricsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetTaskMetricsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(GetTaskMetricsResponse* other); + friend void swap(GetTaskMetricsResponse& a, GetTaskMetricsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskMetricsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskMetricsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskMetricsResponse& from); + void MergeFrom(const GetTaskMetricsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskMetricsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.ExecutionMetricResult results = 1; + int results_size() const; + void clear_results(); + static const int kResultsFieldNumber = 1; + ::flyteidl::core::ExecutionMetricResult* mutable_results(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ExecutionMetricResult >* + mutable_results(); + const ::flyteidl::core::ExecutionMetricResult& results(int index) const; + ::flyteidl::core::ExecutionMetricResult* add_results(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ExecutionMetricResult >& + results() const; + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskMetricsResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ExecutionMetricResult > results_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTaskLogsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskLogsRequest) */ { + public: + GetTaskLogsRequest(); + virtual ~GetTaskLogsRequest(); + + GetTaskLogsRequest(const GetTaskLogsRequest& from); + + inline GetTaskLogsRequest& operator=(const GetTaskLogsRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskLogsRequest(GetTaskLogsRequest&& from) noexcept + : GetTaskLogsRequest() { + *this = ::std::move(from); + } + + inline GetTaskLogsRequest& operator=(GetTaskLogsRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskLogsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskLogsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetTaskLogsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(GetTaskLogsRequest* other); + friend void swap(GetTaskLogsRequest& a, GetTaskLogsRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskLogsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskLogsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskLogsRequest& from); + void MergeFrom(const GetTaskLogsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskLogsRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // bytes resource_meta = 2; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 2; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // string token = 4; + void clear_token(); + static const int kTokenFieldNumber = 4; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // uint64 lines = 3; + void clear_lines(); + static const int kLinesFieldNumber = 3; + ::google::protobuf::uint64 lines() const; + void set_lines(::google::protobuf::uint64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskLogsRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::uint64 lines_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTaskLogsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskLogsResponse) */ { + public: + GetTaskLogsResponse(); + virtual ~GetTaskLogsResponse(); + + GetTaskLogsResponse(const GetTaskLogsResponse& from); + + inline GetTaskLogsResponse& operator=(const GetTaskLogsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskLogsResponse(GetTaskLogsResponse&& from) noexcept + : GetTaskLogsResponse() { + *this = ::std::move(from); + } + + inline GetTaskLogsResponse& operator=(GetTaskLogsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskLogsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskLogsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetTaskLogsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(GetTaskLogsResponse* other); + friend void swap(GetTaskLogsResponse& a, GetTaskLogsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskLogsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskLogsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskLogsResponse& from); + void MergeFrom(const GetTaskLogsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskLogsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string results = 1; + int results_size() const; + void clear_results(); + static const int kResultsFieldNumber = 1; + const ::std::string& results(int index) const; + ::std::string* mutable_results(int index); + void set_results(int index, const ::std::string& value); + #if LANG_CXX11 + void set_results(int index, ::std::string&& value); + #endif + void set_results(int index, const char* value); + void set_results(int index, const char* value, size_t size); + ::std::string* add_results(); + void add_results(const ::std::string& value); + #if LANG_CXX11 + void add_results(::std::string&& value); + #endif + void add_results(const char* value); + void add_results(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& results() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_results(); + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskLogsResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> results_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// =================================================================== + + // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// TaskExecutionMetadata + +// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; +inline bool TaskExecutionMetadata::has_task_execution_id() const { + return this != internal_default_instance() && task_execution_id_ != nullptr; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionMetadata::task_execution_id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.task_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::release_task_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.task_execution_id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; + task_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::mutable_task_execution_id() { + + if (task_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + task_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.task_execution_id) + return task_execution_id_; +} +inline void TaskExecutionMetadata::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); + } + if (task_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_execution_id, submessage_arena); + } + + } else { + + } + task_execution_id_ = task_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.task_execution_id) +} + +// string namespace = 2; +inline void TaskExecutionMetadata::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionMetadata::namespace_() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.namespace) + return namespace__.GetNoArena(); +} +inline void TaskExecutionMetadata::set_namespace_(const ::std::string& value) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.namespace) +} +#if LANG_CXX11 +inline void TaskExecutionMetadata::set_namespace_(::std::string&& value) { + + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.namespace) +} +#endif +inline void TaskExecutionMetadata::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.namespace) +} +inline void TaskExecutionMetadata::set_namespace_(const char* value, size_t size) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.namespace) +} +inline ::std::string* TaskExecutionMetadata::mutable_namespace_() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionMetadata::release_namespace_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.namespace) + + return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionMetadata::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.namespace) +} + +// map labels = 3; +inline int TaskExecutionMetadata::labels_size() const { + return labels_.size(); +} +inline void TaskExecutionMetadata::clear_labels() { + labels_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskExecutionMetadata::labels() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.labels) + return labels_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskExecutionMetadata::mutable_labels() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.labels) + return labels_.MutableMap(); +} + +// map annotations = 4; +inline int TaskExecutionMetadata::annotations_size() const { + return annotations_.size(); +} +inline void TaskExecutionMetadata::clear_annotations() { + annotations_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskExecutionMetadata::annotations() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.annotations) + return annotations_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskExecutionMetadata::mutable_annotations() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.annotations) + return annotations_.MutableMap(); +} + +// string k8s_service_account = 5; +inline void TaskExecutionMetadata::clear_k8s_service_account() { + k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionMetadata::k8s_service_account() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + return k8s_service_account_.GetNoArena(); +} +inline void TaskExecutionMetadata::set_k8s_service_account(const ::std::string& value) { + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +#if LANG_CXX11 +inline void TaskExecutionMetadata::set_k8s_service_account(::std::string&& value) { + + k8s_service_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +#endif +inline void TaskExecutionMetadata::set_k8s_service_account(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +inline void TaskExecutionMetadata::set_k8s_service_account(const char* value, size_t size) { + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +inline ::std::string* TaskExecutionMetadata::mutable_k8s_service_account() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + return k8s_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionMetadata::release_k8s_service_account() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + + return k8s_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionMetadata::set_allocated_k8s_service_account(::std::string* k8s_service_account) { + if (k8s_service_account != nullptr) { + + } else { + + } + k8s_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), k8s_service_account); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} + +// map environment_variables = 6; +inline int TaskExecutionMetadata::environment_variables_size() const { + return environment_variables_.size(); +} +inline void TaskExecutionMetadata::clear_environment_variables() { + environment_variables_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskExecutionMetadata::environment_variables() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) + return environment_variables_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskExecutionMetadata::mutable_environment_variables() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) + return environment_variables_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// CreateTaskRequest + +// .flyteidl.core.LiteralMap inputs = 1; +inline bool CreateTaskRequest::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& CreateTaskRequest::inputs() const { + const ::flyteidl::core::LiteralMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* CreateTaskRequest::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.inputs) + + ::flyteidl::core::LiteralMap* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* CreateTaskRequest::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.inputs) + return inputs_; +} +inline void CreateTaskRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.inputs) +} + +// .flyteidl.core.TaskTemplate template = 2; +inline bool CreateTaskRequest::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::TaskTemplate& CreateTaskRequest::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.template) + return template__; +} +inline void CreateTaskRequest::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.template) +} + +// string output_prefix = 3; +inline void CreateTaskRequest::clear_output_prefix() { + output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateTaskRequest::output_prefix() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.output_prefix) + return output_prefix_.GetNoArena(); +} +inline void CreateTaskRequest::set_output_prefix(const ::std::string& value) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskRequest.output_prefix) +} +#if LANG_CXX11 +inline void CreateTaskRequest::set_output_prefix(::std::string&& value) { + + output_prefix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskRequest.output_prefix) +} +#endif +inline void CreateTaskRequest::set_output_prefix(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskRequest.output_prefix) +} +inline void CreateTaskRequest::set_output_prefix(const char* value, size_t size) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskRequest.output_prefix) +} +inline ::std::string* CreateTaskRequest::mutable_output_prefix() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.output_prefix) + return output_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateTaskRequest::release_output_prefix() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.output_prefix) + + return output_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateTaskRequest::set_allocated_output_prefix(::std::string* output_prefix) { + if (output_prefix != nullptr) { + + } else { + + } + output_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_prefix); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.output_prefix) +} + +// .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; +inline bool CreateTaskRequest::has_task_execution_metadata() const { + return this != internal_default_instance() && task_execution_metadata_ != nullptr; +} +inline void CreateTaskRequest::clear_task_execution_metadata() { + if (GetArenaNoVirtual() == nullptr && task_execution_metadata_ != nullptr) { + delete task_execution_metadata_; + } + task_execution_metadata_ = nullptr; +} +inline const ::flyteidl::admin::TaskExecutionMetadata& CreateTaskRequest::task_execution_metadata() const { + const ::flyteidl::admin::TaskExecutionMetadata* p = task_execution_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.task_execution_metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskExecutionMetadata_default_instance_); +} +inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::release_task_execution_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.task_execution_metadata) + + ::flyteidl::admin::TaskExecutionMetadata* temp = task_execution_metadata_; + task_execution_metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::mutable_task_execution_metadata() { + + if (task_execution_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata>(GetArenaNoVirtual()); + task_execution_metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.task_execution_metadata) + return task_execution_metadata_; +} +inline void CreateTaskRequest::set_allocated_task_execution_metadata(::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete task_execution_metadata_; + } + if (task_execution_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_execution_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_execution_metadata, submessage_arena); + } + + } else { + + } + task_execution_metadata_ = task_execution_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.task_execution_metadata) +} + +// ------------------------------------------------------------------- + +// CreateTaskResponse + +// bytes resource_meta = 1; +inline bool CreateTaskResponse::has_resource_meta() const { + return res_case() == kResourceMeta; +} +inline void CreateTaskResponse::set_has_resource_meta() { + _oneof_case_[0] = kResourceMeta; +} +inline void CreateTaskResponse::clear_resource_meta() { + if (has_resource_meta()) { + res_.resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_res(); + } +} +inline const ::std::string& CreateTaskResponse::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource_meta) + if (has_resource_meta()) { + return res_.resource_meta_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void CreateTaskResponse::set_resource_meta(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) + if (!has_resource_meta()) { + clear_res(); + set_has_resource_meta(); + res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) +} +#if LANG_CXX11 +inline void CreateTaskResponse::set_resource_meta(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) + if (!has_resource_meta()) { + clear_res(); + set_has_resource_meta(); + res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskResponse.resource_meta) +} +#endif +inline void CreateTaskResponse::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_resource_meta()) { + clear_res(); + set_has_resource_meta(); + res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskResponse.resource_meta) +} +inline void CreateTaskResponse::set_resource_meta(const void* value, size_t size) { + if (!has_resource_meta()) { + clear_res(); + set_has_resource_meta(); + res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskResponse.resource_meta) +} +inline ::std::string* CreateTaskResponse::mutable_resource_meta() { + if (!has_resource_meta()) { + clear_res(); + set_has_resource_meta(); + res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource_meta) + return res_.resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateTaskResponse::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource_meta) + if (has_resource_meta()) { + clear_has_res(); + return res_.resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void CreateTaskResponse::set_allocated_resource_meta(::std::string* resource_meta) { + if (has_res()) { + clear_res(); + } + if (resource_meta != nullptr) { + set_has_resource_meta(); + res_.resource_meta_.UnsafeSetDefault(resource_meta); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskResponse.resource_meta) +} + +// .flyteidl.admin.Resource resource = 2; +inline bool CreateTaskResponse::has_resource() const { + return res_case() == kResource; +} +inline void CreateTaskResponse::set_has_resource() { + _oneof_case_[0] = kResource; +} +inline void CreateTaskResponse::clear_resource() { + if (has_resource()) { + delete res_.resource_; + clear_has_res(); + } +} +inline ::flyteidl::admin::Resource* CreateTaskResponse::release_resource() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource) + if (has_resource()) { + clear_has_res(); + ::flyteidl::admin::Resource* temp = res_.resource_; + res_.resource_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::Resource& CreateTaskResponse::resource() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource) + return has_resource() + ? *res_.resource_ + : *reinterpret_cast< ::flyteidl::admin::Resource*>(&::flyteidl::admin::_Resource_default_instance_); +} +inline ::flyteidl::admin::Resource* CreateTaskResponse::mutable_resource() { + if (!has_resource()) { + clear_res(); + set_has_resource(); + res_.resource_ = CreateMaybeMessage< ::flyteidl::admin::Resource >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource) + return res_.resource_; +} + +inline bool CreateTaskResponse::has_res() const { + return res_case() != RES_NOT_SET; +} +inline void CreateTaskResponse::clear_has_res() { + _oneof_case_[0] = RES_NOT_SET; +} +inline CreateTaskResponse::ResCase CreateTaskResponse::res_case() const { + return CreateTaskResponse::ResCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- -// =================================================================== +// GetTaskRequest + +// string task_type = 1; +inline void GetTaskRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetTaskRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.task_type) + return task_type_.GetNoArena(); +} +inline void GetTaskRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.task_type) +} +#if LANG_CXX11 +inline void GetTaskRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.task_type) +} +#endif +inline void GetTaskRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.task_type) +} +inline void GetTaskRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.task_type) +} +inline ::std::string* GetTaskRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetTaskRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetTaskRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.task_type) +} + +// bytes resource_meta = 2; +inline void GetTaskRequest::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetTaskRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void GetTaskRequest::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.resource_meta) +} +#if LANG_CXX11 +inline void GetTaskRequest::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.resource_meta) +} +#endif +inline void GetTaskRequest::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.resource_meta) +} +inline void GetTaskRequest::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.resource_meta) +} +inline ::std::string* GetTaskRequest::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetTaskRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.resource_meta) + + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { + + } else { + + } + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.resource_meta) +} -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ // ------------------------------------------------------------------- +// GetTaskResponse + +// .flyteidl.admin.Resource resource = 1; +inline bool GetTaskResponse::has_resource() const { + return this != internal_default_instance() && resource_ != nullptr; +} +inline void GetTaskResponse::clear_resource() { + if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { + delete resource_; + } + resource_ = nullptr; +} +inline const ::flyteidl::admin::Resource& GetTaskResponse::resource() const { + const ::flyteidl::admin::Resource* p = resource_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.resource) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Resource_default_instance_); +} +inline ::flyteidl::admin::Resource* GetTaskResponse::release_resource() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskResponse.resource) + + ::flyteidl::admin::Resource* temp = resource_; + resource_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Resource* GetTaskResponse::mutable_resource() { + + if (resource_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Resource>(GetArenaNoVirtual()); + resource_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.resource) + return resource_; +} +inline void GetTaskResponse::set_allocated_resource(::flyteidl::admin::Resource* resource) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete resource_; + } + if (resource) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resource = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resource, submessage_arena); + } + + } else { + + } + resource_ = resource; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskResponse.resource) +} + +// repeated .flyteidl.core.TaskLog log_links = 2; +inline int GetTaskResponse::log_links_size() const { + return log_links_.size(); +} +inline ::flyteidl::core::TaskLog* GetTaskResponse::mutable_log_links(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.log_links) + return log_links_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* +GetTaskResponse::mutable_log_links() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.GetTaskResponse.log_links) + return &log_links_; +} +inline const ::flyteidl::core::TaskLog& GetTaskResponse::log_links(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.log_links) + return log_links_.Get(index); +} +inline ::flyteidl::core::TaskLog* GetTaskResponse::add_log_links() { + // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskResponse.log_links) + return log_links_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& +GetTaskResponse::log_links() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.GetTaskResponse.log_links) + return log_links_; +} + // ------------------------------------------------------------------- -// ------------------------------------------------------------------- +// Resource -// TaskExecutionMetadata +// .flyteidl.admin.State state = 1; +inline void Resource::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::State Resource::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.state) + return static_cast< ::flyteidl::admin::State >(state_); +} +inline void Resource::set_state(::flyteidl::admin::State value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.state) +} -// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; -inline bool TaskExecutionMetadata::has_task_execution_id() const { - return this != internal_default_instance() && task_execution_id_ != nullptr; +// .flyteidl.core.LiteralMap outputs = 2; +inline bool Resource::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; } -inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionMetadata::task_execution_id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.task_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +inline const ::flyteidl::core::LiteralMap& Resource::outputs() const { + const ::flyteidl::core::LiteralMap* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); } -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::release_task_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.task_execution_id) +inline ::flyteidl::core::LiteralMap* Resource::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.outputs) - ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; - task_execution_id_ = nullptr; + ::flyteidl::core::LiteralMap* temp = outputs_; + outputs_ = nullptr; return temp; } -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::mutable_task_execution_id() { +inline ::flyteidl::core::LiteralMap* Resource::mutable_outputs() { - if (task_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - task_execution_id_ = p; + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + outputs_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.task_execution_id) - return task_execution_id_; + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.outputs) + return outputs_; } -inline void TaskExecutionMetadata::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { +inline void Resource::set_allocated_outputs(::flyteidl::core::LiteralMap* outputs) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); } - if (task_execution_id) { + if (outputs) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - task_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution_id, submessage_arena); + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); } } else { } - task_execution_id_ = task_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.task_execution_id) + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.outputs) } -// string namespace = 2; -inline void TaskExecutionMetadata::clear_namespace_() { - namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string message = 3; +inline void Resource::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& TaskExecutionMetadata::namespace_() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.namespace) - return namespace__.GetNoArena(); +inline const ::std::string& Resource::message() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.message) + return message_.GetNoArena(); } -inline void TaskExecutionMetadata::set_namespace_(const ::std::string& value) { +inline void Resource::set_message(const ::std::string& value) { - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.namespace) + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.message) } #if LANG_CXX11 -inline void TaskExecutionMetadata::set_namespace_(::std::string&& value) { +inline void Resource::set_message(::std::string&& value) { - namespace__.SetNoArena( + message_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.namespace) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Resource.message) } #endif -inline void TaskExecutionMetadata::set_namespace_(const char* value) { +inline void Resource::set_message(const char* value) { GOOGLE_DCHECK(value != nullptr); - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.namespace) + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Resource.message) } -inline void TaskExecutionMetadata::set_namespace_(const char* value, size_t size) { +inline void Resource::set_message(const char* value, size_t size) { - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.namespace) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Resource.message) } -inline ::std::string* TaskExecutionMetadata::mutable_namespace_() { +inline ::std::string* Resource::mutable_message() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.namespace) - return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Resource::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Resource::set_allocated_message(::std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.message) +} + +// repeated .flyteidl.core.TaskLog log_links = 4; +inline int Resource::log_links_size() const { + return log_links_.size(); +} +inline ::flyteidl::core::TaskLog* Resource::mutable_log_links(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.log_links) + return log_links_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* +Resource::mutable_log_links() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Resource.log_links) + return &log_links_; +} +inline const ::flyteidl::core::TaskLog& Resource::log_links(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.log_links) + return log_links_.Get(index); +} +inline ::flyteidl::core::TaskLog* Resource::add_log_links() { + // @@protoc_insertion_point(field_add:flyteidl.admin.Resource.log_links) + return log_links_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& +Resource::log_links() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Resource.log_links) + return log_links_; +} + +// ------------------------------------------------------------------- + +// DeleteTaskRequest + +// string task_type = 1; +inline void DeleteTaskRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteTaskRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.task_type) + return task_type_.GetNoArena(); +} +inline void DeleteTaskRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.task_type) +} +#if LANG_CXX11 +inline void DeleteTaskRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.task_type) +} +#endif +inline void DeleteTaskRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.task_type) +} +inline void DeleteTaskRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.task_type) +} +inline ::std::string* DeleteTaskRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteTaskRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteTaskRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.task_type) +} + +// bytes resource_meta = 2; +inline void DeleteTaskRequest::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteTaskRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void DeleteTaskRequest::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +#if LANG_CXX11 +inline void DeleteTaskRequest::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +#endif +inline void DeleteTaskRequest::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +inline void DeleteTaskRequest::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +inline ::std::string* DeleteTaskRequest::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* TaskExecutionMetadata::release_namespace_() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.namespace) +inline ::std::string* DeleteTaskRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.resource_meta) - return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TaskExecutionMetadata::set_allocated_namespace_(::std::string* namespace_) { - if (namespace_ != nullptr) { +inline void DeleteTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { } else { } - namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.namespace) + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.resource_meta) } -// map labels = 3; -inline int TaskExecutionMetadata::labels_size() const { - return labels_.size(); -} -inline void TaskExecutionMetadata::clear_labels() { - labels_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskExecutionMetadata::labels() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.labels) - return labels_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskExecutionMetadata::mutable_labels() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.labels) - return labels_.MutableMap(); -} +// ------------------------------------------------------------------- -// map annotations = 4; -inline int TaskExecutionMetadata::annotations_size() const { - return annotations_.size(); -} -inline void TaskExecutionMetadata::clear_annotations() { - annotations_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskExecutionMetadata::annotations() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.annotations) - return annotations_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskExecutionMetadata::mutable_annotations() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.annotations) - return annotations_.MutableMap(); -} +// DeleteTaskResponse -// string k8s_service_account = 5; -inline void TaskExecutionMetadata::clear_k8s_service_account() { - k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// ------------------------------------------------------------------- + +// Agent + +// string name = 1; +inline void Agent::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& TaskExecutionMetadata::k8s_service_account() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) - return k8s_service_account_.GetNoArena(); +inline const ::std::string& Agent::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Agent.name) + return name_.GetNoArena(); } -inline void TaskExecutionMetadata::set_k8s_service_account(const ::std::string& value) { +inline void Agent::set_name(const ::std::string& value) { - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.name) } #if LANG_CXX11 -inline void TaskExecutionMetadata::set_k8s_service_account(::std::string&& value) { +inline void Agent::set_name(::std::string&& value) { - k8s_service_account_.SetNoArena( + name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Agent.name) } #endif -inline void TaskExecutionMetadata::set_k8s_service_account(const char* value) { +inline void Agent::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Agent.name) } -inline void TaskExecutionMetadata::set_k8s_service_account(const char* value, size_t size) { +inline void Agent::set_name(const char* value, size_t size) { - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Agent.name) } -inline ::std::string* TaskExecutionMetadata::mutable_k8s_service_account() { +inline ::std::string* Agent::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) - return k8s_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Agent.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* TaskExecutionMetadata::release_k8s_service_account() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +inline ::std::string* Agent::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Agent.name) - return k8s_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TaskExecutionMetadata::set_allocated_k8s_service_account(::std::string* k8s_service_account) { - if (k8s_service_account != nullptr) { +inline void Agent::set_allocated_name(::std::string* name) { + if (name != nullptr) { } else { } - k8s_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), k8s_service_account); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Agent.name) } -// map environment_variables = 6; -inline int TaskExecutionMetadata::environment_variables_size() const { - return environment_variables_.size(); +// repeated string supported_task_types = 2; +inline int Agent::supported_task_types_size() const { + return supported_task_types_.size(); } -inline void TaskExecutionMetadata::clear_environment_variables() { - environment_variables_.Clear(); +inline void Agent::clear_supported_task_types() { + supported_task_types_.Clear(); } -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskExecutionMetadata::environment_variables() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) - return environment_variables_.GetMap(); +inline const ::std::string& Agent::supported_task_types(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Agent.supported_task_types) + return supported_task_types_.Get(index); } -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskExecutionMetadata::mutable_environment_variables() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) - return environment_variables_.MutableMap(); +inline ::std::string* Agent::mutable_supported_task_types(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Agent.supported_task_types) + return supported_task_types_.Mutable(index); } - -// ------------------------------------------------------------------- - -// CreateTaskRequest - -// .flyteidl.core.LiteralMap inputs = 1; -inline bool CreateTaskRequest::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; +inline void Agent::set_supported_task_types(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.supported_task_types) + supported_task_types_.Mutable(index)->assign(value); } -inline const ::flyteidl::core::LiteralMap& CreateTaskRequest::inputs() const { - const ::flyteidl::core::LiteralMap* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); +#if LANG_CXX11 +inline void Agent::set_supported_task_types(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.supported_task_types) + supported_task_types_.Mutable(index)->assign(std::move(value)); } -inline ::flyteidl::core::LiteralMap* CreateTaskRequest::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.inputs) - - ::flyteidl::core::LiteralMap* temp = inputs_; - inputs_ = nullptr; - return temp; +#endif +inline void Agent::set_supported_task_types(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + supported_task_types_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Agent.supported_task_types) } -inline ::flyteidl::core::LiteralMap* CreateTaskRequest::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.inputs) - return inputs_; +inline void Agent::set_supported_task_types(int index, const char* value, size_t size) { + supported_task_types_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Agent.supported_task_types) } -inline void CreateTaskRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.inputs) +inline ::std::string* Agent::add_supported_task_types() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.Agent.supported_task_types) + return supported_task_types_.Add(); } - -// .flyteidl.core.TaskTemplate template = 2; -inline bool CreateTaskRequest::has_template_() const { - return this != internal_default_instance() && template__ != nullptr; +inline void Agent::add_supported_task_types(const ::std::string& value) { + supported_task_types_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.Agent.supported_task_types) } -inline const ::flyteidl::core::TaskTemplate& CreateTaskRequest::template_() const { - const ::flyteidl::core::TaskTemplate* p = template__; - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskTemplate_default_instance_); +#if LANG_CXX11 +inline void Agent::add_supported_task_types(::std::string&& value) { + supported_task_types_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.Agent.supported_task_types) } -inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::release_template_() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.template) - - ::flyteidl::core::TaskTemplate* temp = template__; - template__ = nullptr; - return temp; +#endif +inline void Agent::add_supported_task_types(const char* value) { + GOOGLE_DCHECK(value != nullptr); + supported_task_types_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.Agent.supported_task_types) } -inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::mutable_template_() { - - if (template__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); - template__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.template) - return template__; +inline void Agent::add_supported_task_types(const char* value, size_t size) { + supported_task_types_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.Agent.supported_task_types) } -inline void CreateTaskRequest::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); - } - if (template_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - template_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, template_, submessage_arena); - } - - } else { - - } - template__ = template_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.template) +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +Agent::supported_task_types() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Agent.supported_task_types) + return supported_task_types_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +Agent::mutable_supported_task_types() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Agent.supported_task_types) + return &supported_task_types_; } -// string output_prefix = 3; -inline void CreateTaskRequest::clear_output_prefix() { - output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// ------------------------------------------------------------------- + +// GetAgentRequest + +// string name = 1; +inline void GetAgentRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& CreateTaskRequest::output_prefix() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.output_prefix) - return output_prefix_.GetNoArena(); +inline const ::std::string& GetAgentRequest::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetAgentRequest.name) + return name_.GetNoArena(); } -inline void CreateTaskRequest::set_output_prefix(const ::std::string& value) { +inline void GetAgentRequest::set_name(const ::std::string& value) { - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskRequest.output_prefix) + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetAgentRequest.name) } #if LANG_CXX11 -inline void CreateTaskRequest::set_output_prefix(::std::string&& value) { +inline void GetAgentRequest::set_name(::std::string&& value) { - output_prefix_.SetNoArena( + name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskRequest.output_prefix) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetAgentRequest.name) } #endif -inline void CreateTaskRequest::set_output_prefix(const char* value) { +inline void GetAgentRequest::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskRequest.output_prefix) + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetAgentRequest.name) } -inline void CreateTaskRequest::set_output_prefix(const char* value, size_t size) { +inline void GetAgentRequest::set_name(const char* value, size_t size) { - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskRequest.output_prefix) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetAgentRequest.name) } -inline ::std::string* CreateTaskRequest::mutable_output_prefix() { +inline ::std::string* GetAgentRequest::mutable_name() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.output_prefix) - return output_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetAgentRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* CreateTaskRequest::release_output_prefix() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.output_prefix) +inline ::std::string* GetAgentRequest::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetAgentRequest.name) - return output_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CreateTaskRequest::set_allocated_output_prefix(::std::string* output_prefix) { - if (output_prefix != nullptr) { +inline void GetAgentRequest::set_allocated_name(::std::string* name) { + if (name != nullptr) { } else { } - output_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_prefix); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.output_prefix) + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetAgentRequest.name) } -// .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; -inline bool CreateTaskRequest::has_task_execution_metadata() const { - return this != internal_default_instance() && task_execution_metadata_ != nullptr; +// ------------------------------------------------------------------- + +// GetAgentResponse + +// .flyteidl.admin.Agent agent = 1; +inline bool GetAgentResponse::has_agent() const { + return this != internal_default_instance() && agent_ != nullptr; } -inline void CreateTaskRequest::clear_task_execution_metadata() { - if (GetArenaNoVirtual() == nullptr && task_execution_metadata_ != nullptr) { - delete task_execution_metadata_; +inline void GetAgentResponse::clear_agent() { + if (GetArenaNoVirtual() == nullptr && agent_ != nullptr) { + delete agent_; } - task_execution_metadata_ = nullptr; + agent_ = nullptr; } -inline const ::flyteidl::admin::TaskExecutionMetadata& CreateTaskRequest::task_execution_metadata() const { - const ::flyteidl::admin::TaskExecutionMetadata* p = task_execution_metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.task_execution_metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_TaskExecutionMetadata_default_instance_); +inline const ::flyteidl::admin::Agent& GetAgentResponse::agent() const { + const ::flyteidl::admin::Agent* p = agent_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetAgentResponse.agent) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Agent_default_instance_); } -inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::release_task_execution_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.task_execution_metadata) +inline ::flyteidl::admin::Agent* GetAgentResponse::release_agent() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetAgentResponse.agent) - ::flyteidl::admin::TaskExecutionMetadata* temp = task_execution_metadata_; - task_execution_metadata_ = nullptr; + ::flyteidl::admin::Agent* temp = agent_; + agent_ = nullptr; return temp; } -inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::mutable_task_execution_metadata() { +inline ::flyteidl::admin::Agent* GetAgentResponse::mutable_agent() { - if (task_execution_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata>(GetArenaNoVirtual()); - task_execution_metadata_ = p; + if (agent_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Agent>(GetArenaNoVirtual()); + agent_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.task_execution_metadata) - return task_execution_metadata_; + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetAgentResponse.agent) + return agent_; } -inline void CreateTaskRequest::set_allocated_task_execution_metadata(::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata) { +inline void GetAgentResponse::set_allocated_agent(::flyteidl::admin::Agent* agent) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete task_execution_metadata_; + delete agent_; } - if (task_execution_metadata) { + if (agent) { ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - task_execution_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution_metadata, submessage_arena); + agent = ::google::protobuf::internal::GetOwnedMessage( + message_arena, agent, submessage_arena); } } else { } - task_execution_metadata_ = task_execution_metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.task_execution_metadata) + agent_ = agent; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetAgentResponse.agent) } // ------------------------------------------------------------------- -// CreateTaskResponse +// ListAgentsRequest -// bytes resource_meta = 1; -inline bool CreateTaskResponse::has_resource_meta() const { - return res_case() == kResourceMeta; -} -inline void CreateTaskResponse::set_has_resource_meta() { - _oneof_case_[0] = kResourceMeta; -} -inline void CreateTaskResponse::clear_resource_meta() { - if (has_resource_meta()) { - res_.resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_res(); - } -} -inline const ::std::string& CreateTaskResponse::resource_meta() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource_meta) - if (has_resource_meta()) { - return res_.resource_meta_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void CreateTaskResponse::set_resource_meta(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) -} -#if LANG_CXX11 -inline void CreateTaskResponse::set_resource_meta(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskResponse.resource_meta) -} -#endif -inline void CreateTaskResponse::set_resource_meta(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskResponse.resource_meta) -} -inline void CreateTaskResponse::set_resource_meta(const void* value, size_t size) { - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskResponse.resource_meta) -} -inline ::std::string* CreateTaskResponse::mutable_resource_meta() { - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource_meta) - return res_.resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateTaskResponse::release_resource_meta() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource_meta) - if (has_resource_meta()) { - clear_has_res(); - return res_.resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void CreateTaskResponse::set_allocated_resource_meta(::std::string* resource_meta) { - if (has_res()) { - clear_res(); - } - if (resource_meta != nullptr) { - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(resource_meta); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskResponse.resource_meta) -} +// ------------------------------------------------------------------- -// .flyteidl.admin.Resource resource = 2; -inline bool CreateTaskResponse::has_resource() const { - return res_case() == kResource; -} -inline void CreateTaskResponse::set_has_resource() { - _oneof_case_[0] = kResource; -} -inline void CreateTaskResponse::clear_resource() { - if (has_resource()) { - delete res_.resource_; - clear_has_res(); - } +// ListAgentsResponse + +// repeated .flyteidl.admin.Agent agents = 1; +inline int ListAgentsResponse::agents_size() const { + return agents_.size(); } -inline ::flyteidl::admin::Resource* CreateTaskResponse::release_resource() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource) - if (has_resource()) { - clear_has_res(); - ::flyteidl::admin::Resource* temp = res_.resource_; - res_.resource_ = nullptr; - return temp; - } else { - return nullptr; - } +inline void ListAgentsResponse::clear_agents() { + agents_.Clear(); } -inline const ::flyteidl::admin::Resource& CreateTaskResponse::resource() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource) - return has_resource() - ? *res_.resource_ - : *reinterpret_cast< ::flyteidl::admin::Resource*>(&::flyteidl::admin::_Resource_default_instance_); +inline ::flyteidl::admin::Agent* ListAgentsResponse::mutable_agents(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ListAgentsResponse.agents) + return agents_.Mutable(index); } -inline ::flyteidl::admin::Resource* CreateTaskResponse::mutable_resource() { - if (!has_resource()) { - clear_res(); - set_has_resource(); - res_.resource_ = CreateMaybeMessage< ::flyteidl::admin::Resource >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource) - return res_.resource_; +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >* +ListAgentsResponse::mutable_agents() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ListAgentsResponse.agents) + return &agents_; } - -inline bool CreateTaskResponse::has_res() const { - return res_case() != RES_NOT_SET; +inline const ::flyteidl::admin::Agent& ListAgentsResponse::agents(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ListAgentsResponse.agents) + return agents_.Get(index); } -inline void CreateTaskResponse::clear_has_res() { - _oneof_case_[0] = RES_NOT_SET; +inline ::flyteidl::admin::Agent* ListAgentsResponse::add_agents() { + // @@protoc_insertion_point(field_add:flyteidl.admin.ListAgentsResponse.agents) + return agents_.Add(); } -inline CreateTaskResponse::ResCase CreateTaskResponse::res_case() const { - return CreateTaskResponse::ResCase(_oneof_case_[0]); +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >& +ListAgentsResponse::agents() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ListAgentsResponse.agents) + return agents_; } + // ------------------------------------------------------------------- -// GetTaskRequest +// GetTaskMetricsRequest // string task_type = 1; -inline void GetTaskRequest::clear_task_type() { +inline void GetTaskMetricsRequest::clear_task_type() { task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& GetTaskRequest::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.task_type) +inline const ::std::string& GetTaskMetricsRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskMetricsRequest.task_type) return task_type_.GetNoArena(); } -inline void GetTaskRequest::set_task_type(const ::std::string& value) { +inline void GetTaskMetricsRequest::set_task_type(const ::std::string& value) { task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.task_type) + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskMetricsRequest.task_type) } #if LANG_CXX11 -inline void GetTaskRequest::set_task_type(::std::string&& value) { +inline void GetTaskMetricsRequest::set_task_type(::std::string&& value) { task_type_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.task_type) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskMetricsRequest.task_type) } #endif -inline void GetTaskRequest::set_task_type(const char* value) { +inline void GetTaskMetricsRequest::set_task_type(const char* value) { GOOGLE_DCHECK(value != nullptr); task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.task_type) + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskMetricsRequest.task_type) } -inline void GetTaskRequest::set_task_type(const char* value, size_t size) { +inline void GetTaskMetricsRequest::set_task_type(const char* value, size_t size) { task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.task_type) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskMetricsRequest.task_type) } -inline ::std::string* GetTaskRequest::mutable_task_type() { +inline ::std::string* GetTaskMetricsRequest::mutable_task_type() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.task_type) + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskMetricsRequest.task_type) return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetTaskRequest::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.task_type) +inline ::std::string* GetTaskMetricsRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskMetricsRequest.task_type) return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetTaskRequest::set_allocated_task_type(::std::string* task_type) { +inline void GetTaskMetricsRequest::set_allocated_task_type(::std::string* task_type) { if (task_type != nullptr) { } else { } task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.task_type) + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskMetricsRequest.task_type) } // bytes resource_meta = 2; -inline void GetTaskRequest::clear_resource_meta() { +inline void GetTaskMetricsRequest::clear_resource_meta() { resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& GetTaskRequest::resource_meta() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.resource_meta) +inline const ::std::string& GetTaskMetricsRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskMetricsRequest.resource_meta) return resource_meta_.GetNoArena(); } -inline void GetTaskRequest::set_resource_meta(const ::std::string& value) { +inline void GetTaskMetricsRequest::set_resource_meta(const ::std::string& value) { resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskMetricsRequest.resource_meta) } #if LANG_CXX11 -inline void GetTaskRequest::set_resource_meta(::std::string&& value) { +inline void GetTaskMetricsRequest::set_resource_meta(::std::string&& value) { resource_meta_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskMetricsRequest.resource_meta) } #endif -inline void GetTaskRequest::set_resource_meta(const char* value) { +inline void GetTaskMetricsRequest::set_resource_meta(const char* value) { GOOGLE_DCHECK(value != nullptr); resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskMetricsRequest.resource_meta) } -inline void GetTaskRequest::set_resource_meta(const void* value, size_t size) { +inline void GetTaskMetricsRequest::set_resource_meta(const void* value, size_t size) { resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskMetricsRequest.resource_meta) } -inline ::std::string* GetTaskRequest::mutable_resource_meta() { +inline ::std::string* GetTaskMetricsRequest::mutable_resource_meta() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.resource_meta) + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskMetricsRequest.resource_meta) return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetTaskRequest::release_resource_meta() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.resource_meta) +inline ::std::string* GetTaskMetricsRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskMetricsRequest.resource_meta) return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { +inline void GetTaskMetricsRequest::set_allocated_resource_meta(::std::string* resource_meta) { if (resource_meta != nullptr) { } else { } resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskMetricsRequest.resource_meta) } -// ------------------------------------------------------------------- - -// GetTaskResponse - -// .flyteidl.admin.Resource resource = 1; -inline bool GetTaskResponse::has_resource() const { - return this != internal_default_instance() && resource_ != nullptr; +// repeated string queries = 3; +inline int GetTaskMetricsRequest::queries_size() const { + return queries_.size(); } -inline void GetTaskResponse::clear_resource() { - if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { - delete resource_; - } - resource_ = nullptr; +inline void GetTaskMetricsRequest::clear_queries() { + queries_.Clear(); } -inline const ::flyteidl::admin::Resource& GetTaskResponse::resource() const { - const ::flyteidl::admin::Resource* p = resource_; - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.resource) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Resource_default_instance_); +inline const ::std::string& GetTaskMetricsRequest::queries(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskMetricsRequest.queries) + return queries_.Get(index); } -inline ::flyteidl::admin::Resource* GetTaskResponse::release_resource() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskResponse.resource) - - ::flyteidl::admin::Resource* temp = resource_; - resource_ = nullptr; - return temp; +inline ::std::string* GetTaskMetricsRequest::mutable_queries(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskMetricsRequest.queries) + return queries_.Mutable(index); } -inline ::flyteidl::admin::Resource* GetTaskResponse::mutable_resource() { - - if (resource_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Resource>(GetArenaNoVirtual()); - resource_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.resource) - return resource_; +inline void GetTaskMetricsRequest::set_queries(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskMetricsRequest.queries) + queries_.Mutable(index)->assign(value); } -inline void GetTaskResponse::set_allocated_resource(::flyteidl::admin::Resource* resource) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete resource_; - } - if (resource) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resource = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resource, submessage_arena); - } - - } else { - - } - resource_ = resource; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskResponse.resource) +#if LANG_CXX11 +inline void GetTaskMetricsRequest::set_queries(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskMetricsRequest.queries) + queries_.Mutable(index)->assign(std::move(value)); } - -// repeated .flyteidl.core.TaskLog log_links = 2; -inline int GetTaskResponse::log_links_size() const { - return log_links_.size(); +#endif +inline void GetTaskMetricsRequest::set_queries(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + queries_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskMetricsRequest.queries) } -inline ::flyteidl::core::TaskLog* GetTaskResponse::mutable_log_links(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.log_links) - return log_links_.Mutable(index); +inline void GetTaskMetricsRequest::set_queries(int index, const char* value, size_t size) { + queries_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskMetricsRequest.queries) } -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* -GetTaskResponse::mutable_log_links() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.GetTaskResponse.log_links) - return &log_links_; +inline ::std::string* GetTaskMetricsRequest::add_queries() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.GetTaskMetricsRequest.queries) + return queries_.Add(); } -inline const ::flyteidl::core::TaskLog& GetTaskResponse::log_links(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.log_links) - return log_links_.Get(index); +inline void GetTaskMetricsRequest::add_queries(const ::std::string& value) { + queries_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskMetricsRequest.queries) } -inline ::flyteidl::core::TaskLog* GetTaskResponse::add_log_links() { - // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskResponse.log_links) - return log_links_.Add(); +#if LANG_CXX11 +inline void GetTaskMetricsRequest::add_queries(::std::string&& value) { + queries_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskMetricsRequest.queries) } -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& -GetTaskResponse::log_links() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.GetTaskResponse.log_links) - return log_links_; +#endif +inline void GetTaskMetricsRequest::add_queries(const char* value) { + GOOGLE_DCHECK(value != nullptr); + queries_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.GetTaskMetricsRequest.queries) } - -// ------------------------------------------------------------------- - -// Resource - -// .flyteidl.admin.State state = 1; -inline void Resource::clear_state() { - state_ = 0; +inline void GetTaskMetricsRequest::add_queries(const char* value, size_t size) { + queries_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.GetTaskMetricsRequest.queries) } -inline ::flyteidl::admin::State Resource::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.state) - return static_cast< ::flyteidl::admin::State >(state_); +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +GetTaskMetricsRequest::queries() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.GetTaskMetricsRequest.queries) + return queries_; } -inline void Resource::set_state(::flyteidl::admin::State value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.state) +inline ::google::protobuf::RepeatedPtrField<::std::string>* +GetTaskMetricsRequest::mutable_queries() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.GetTaskMetricsRequest.queries) + return &queries_; } -// .flyteidl.core.LiteralMap outputs = 2; -inline bool Resource::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; +// .google.protobuf.Timestamp start_time = 4; +inline bool GetTaskMetricsRequest::has_start_time() const { + return this != internal_default_instance() && start_time_ != nullptr; } -inline const ::flyteidl::core::LiteralMap& Resource::outputs() const { - const ::flyteidl::core::LiteralMap* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); +inline const ::google::protobuf::Timestamp& GetTaskMetricsRequest::start_time() const { + const ::google::protobuf::Timestamp* p = start_time_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskMetricsRequest.start_time) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); } -inline ::flyteidl::core::LiteralMap* Resource::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.outputs) +inline ::google::protobuf::Timestamp* GetTaskMetricsRequest::release_start_time() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskMetricsRequest.start_time) - ::flyteidl::core::LiteralMap* temp = outputs_; - outputs_ = nullptr; + ::google::protobuf::Timestamp* temp = start_time_; + start_time_ = nullptr; return temp; } -inline ::flyteidl::core::LiteralMap* Resource::mutable_outputs() { +inline ::google::protobuf::Timestamp* GetTaskMetricsRequest::mutable_start_time() { - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - outputs_ = p; + if (start_time_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + start_time_ = p; } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.outputs) - return outputs_; + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskMetricsRequest.start_time) + return start_time_; } -inline void Resource::set_allocated_outputs(::flyteidl::core::LiteralMap* outputs) { +inline void GetTaskMetricsRequest::set_allocated_start_time(::google::protobuf::Timestamp* start_time) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(start_time_); } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; + if (start_time) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(start_time)->GetArena(); if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); + start_time = ::google::protobuf::internal::GetOwnedMessage( + message_arena, start_time, submessage_arena); } } else { } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.outputs) + start_time_ = start_time; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskMetricsRequest.start_time) } -// string message = 3; -inline void Resource::clear_message() { - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// .google.protobuf.Timestamp end_time = 5; +inline bool GetTaskMetricsRequest::has_end_time() const { + return this != internal_default_instance() && end_time_ != nullptr; } -inline const ::std::string& Resource::message() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.message) - return message_.GetNoArena(); +inline const ::google::protobuf::Timestamp& GetTaskMetricsRequest::end_time() const { + const ::google::protobuf::Timestamp* p = end_time_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskMetricsRequest.end_time) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); } -inline void Resource::set_message(const ::std::string& value) { +inline ::google::protobuf::Timestamp* GetTaskMetricsRequest::release_end_time() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskMetricsRequest.end_time) - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.message) + ::google::protobuf::Timestamp* temp = end_time_; + end_time_ = nullptr; + return temp; } -#if LANG_CXX11 -inline void Resource::set_message(::std::string&& value) { +inline ::google::protobuf::Timestamp* GetTaskMetricsRequest::mutable_end_time() { - message_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Resource.message) + if (end_time_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + end_time_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskMetricsRequest.end_time) + return end_time_; } -#endif -inline void Resource::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Resource.message) +inline void GetTaskMetricsRequest::set_allocated_end_time(::google::protobuf::Timestamp* end_time) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(end_time_); + } + if (end_time) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(end_time)->GetArena(); + if (message_arena != submessage_arena) { + end_time = ::google::protobuf::internal::GetOwnedMessage( + message_arena, end_time, submessage_arena); + } + + } else { + + } + end_time_ = end_time; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskMetricsRequest.end_time) } -inline void Resource::set_message(const char* value, size_t size) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Resource.message) + +// .google.protobuf.Duration step = 6; +inline bool GetTaskMetricsRequest::has_step() const { + return this != internal_default_instance() && step_ != nullptr; } -inline ::std::string* Resource::mutable_message() { +inline const ::google::protobuf::Duration& GetTaskMetricsRequest::step() const { + const ::google::protobuf::Duration* p = step_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskMetricsRequest.step) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* GetTaskMetricsRequest::release_step() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskMetricsRequest.step) - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.message) - return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::Duration* temp = step_; + step_ = nullptr; + return temp; } -inline ::std::string* Resource::release_message() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.message) +inline ::google::protobuf::Duration* GetTaskMetricsRequest::mutable_step() { - return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (step_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + step_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskMetricsRequest.step) + return step_; } -inline void Resource::set_allocated_message(::std::string* message) { - if (message != nullptr) { +inline void GetTaskMetricsRequest::set_allocated_step(::google::protobuf::Duration* step) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(step_); + } + if (step) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(step)->GetArena(); + if (message_arena != submessage_arena) { + step = ::google::protobuf::internal::GetOwnedMessage( + message_arena, step, submessage_arena); + } } else { } - message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.message) + step_ = step; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskMetricsRequest.step) } -// repeated .flyteidl.core.TaskLog log_links = 4; -inline int Resource::log_links_size() const { - return log_links_.size(); +// ------------------------------------------------------------------- + +// GetTaskMetricsResponse + +// repeated .flyteidl.core.ExecutionMetricResult results = 1; +inline int GetTaskMetricsResponse::results_size() const { + return results_.size(); } -inline ::flyteidl::core::TaskLog* Resource::mutable_log_links(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.log_links) - return log_links_.Mutable(index); +inline ::flyteidl::core::ExecutionMetricResult* GetTaskMetricsResponse::mutable_results(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskMetricsResponse.results) + return results_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* -Resource::mutable_log_links() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Resource.log_links) - return &log_links_; +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ExecutionMetricResult >* +GetTaskMetricsResponse::mutable_results() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.GetTaskMetricsResponse.results) + return &results_; } -inline const ::flyteidl::core::TaskLog& Resource::log_links(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.log_links) - return log_links_.Get(index); +inline const ::flyteidl::core::ExecutionMetricResult& GetTaskMetricsResponse::results(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskMetricsResponse.results) + return results_.Get(index); } -inline ::flyteidl::core::TaskLog* Resource::add_log_links() { - // @@protoc_insertion_point(field_add:flyteidl.admin.Resource.log_links) - return log_links_.Add(); +inline ::flyteidl::core::ExecutionMetricResult* GetTaskMetricsResponse::add_results() { + // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskMetricsResponse.results) + return results_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& -Resource::log_links() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Resource.log_links) - return log_links_; +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ExecutionMetricResult >& +GetTaskMetricsResponse::results() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.GetTaskMetricsResponse.results) + return results_; } // ------------------------------------------------------------------- -// DeleteTaskRequest +// GetTaskLogsRequest // string task_type = 1; -inline void DeleteTaskRequest::clear_task_type() { +inline void GetTaskLogsRequest::clear_task_type() { task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& DeleteTaskRequest::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.task_type) +inline const ::std::string& GetTaskLogsRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskLogsRequest.task_type) return task_type_.GetNoArena(); } -inline void DeleteTaskRequest::set_task_type(const ::std::string& value) { +inline void GetTaskLogsRequest::set_task_type(const ::std::string& value) { task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.task_type) + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskLogsRequest.task_type) } #if LANG_CXX11 -inline void DeleteTaskRequest::set_task_type(::std::string&& value) { +inline void GetTaskLogsRequest::set_task_type(::std::string&& value) { task_type_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.task_type) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskLogsRequest.task_type) } #endif -inline void DeleteTaskRequest::set_task_type(const char* value) { +inline void GetTaskLogsRequest::set_task_type(const char* value) { GOOGLE_DCHECK(value != nullptr); task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.task_type) + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskLogsRequest.task_type) } -inline void DeleteTaskRequest::set_task_type(const char* value, size_t size) { +inline void GetTaskLogsRequest::set_task_type(const char* value, size_t size) { task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.task_type) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskLogsRequest.task_type) } -inline ::std::string* DeleteTaskRequest::mutable_task_type() { +inline ::std::string* GetTaskLogsRequest::mutable_task_type() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.task_type) + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskLogsRequest.task_type) return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* DeleteTaskRequest::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.task_type) +inline ::std::string* GetTaskLogsRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskLogsRequest.task_type) return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void DeleteTaskRequest::set_allocated_task_type(::std::string* task_type) { +inline void GetTaskLogsRequest::set_allocated_task_type(::std::string* task_type) { if (task_type != nullptr) { } else { } task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.task_type) + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskLogsRequest.task_type) } // bytes resource_meta = 2; -inline void DeleteTaskRequest::clear_resource_meta() { +inline void GetTaskLogsRequest::clear_resource_meta() { resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& DeleteTaskRequest::resource_meta() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.resource_meta) +inline const ::std::string& GetTaskLogsRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskLogsRequest.resource_meta) return resource_meta_.GetNoArena(); } -inline void DeleteTaskRequest::set_resource_meta(const ::std::string& value) { +inline void GetTaskLogsRequest::set_resource_meta(const ::std::string& value) { resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskLogsRequest.resource_meta) } #if LANG_CXX11 -inline void DeleteTaskRequest::set_resource_meta(::std::string&& value) { +inline void GetTaskLogsRequest::set_resource_meta(::std::string&& value) { resource_meta_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskLogsRequest.resource_meta) } #endif -inline void DeleteTaskRequest::set_resource_meta(const char* value) { +inline void GetTaskLogsRequest::set_resource_meta(const char* value) { GOOGLE_DCHECK(value != nullptr); resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskLogsRequest.resource_meta) } -inline void DeleteTaskRequest::set_resource_meta(const void* value, size_t size) { +inline void GetTaskLogsRequest::set_resource_meta(const void* value, size_t size) { resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskLogsRequest.resource_meta) } -inline ::std::string* DeleteTaskRequest::mutable_resource_meta() { +inline ::std::string* GetTaskLogsRequest::mutable_resource_meta() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.resource_meta) + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskLogsRequest.resource_meta) return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* DeleteTaskRequest::release_resource_meta() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.resource_meta) +inline ::std::string* GetTaskLogsRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskLogsRequest.resource_meta) return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void DeleteTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { +inline void GetTaskLogsRequest::set_allocated_resource_meta(::std::string* resource_meta) { if (resource_meta != nullptr) { } else { } resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.resource_meta) + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskLogsRequest.resource_meta) } -// ------------------------------------------------------------------- - -// DeleteTaskResponse - -// ------------------------------------------------------------------- - -// Agent +// uint64 lines = 3; +inline void GetTaskLogsRequest::clear_lines() { + lines_ = PROTOBUF_ULONGLONG(0); +} +inline ::google::protobuf::uint64 GetTaskLogsRequest::lines() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskLogsRequest.lines) + return lines_; +} +inline void GetTaskLogsRequest::set_lines(::google::protobuf::uint64 value) { + + lines_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskLogsRequest.lines) +} -// string name = 1; -inline void Agent::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string token = 4; +inline void GetTaskLogsRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Agent::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Agent.name) - return name_.GetNoArena(); +inline const ::std::string& GetTaskLogsRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskLogsRequest.token) + return token_.GetNoArena(); } -inline void Agent::set_name(const ::std::string& value) { +inline void GetTaskLogsRequest::set_token(const ::std::string& value) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.name) + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskLogsRequest.token) } #if LANG_CXX11 -inline void Agent::set_name(::std::string&& value) { +inline void GetTaskLogsRequest::set_token(::std::string&& value) { - name_.SetNoArena( + token_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Agent.name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskLogsRequest.token) } #endif -inline void Agent::set_name(const char* value) { +inline void GetTaskLogsRequest::set_token(const char* value) { GOOGLE_DCHECK(value != nullptr); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Agent.name) + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskLogsRequest.token) } -inline void Agent::set_name(const char* value, size_t size) { +inline void GetTaskLogsRequest::set_token(const char* value, size_t size) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Agent.name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskLogsRequest.token) } -inline ::std::string* Agent::mutable_name() { +inline ::std::string* GetTaskLogsRequest::mutable_token() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Agent.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskLogsRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Agent::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Agent.name) +inline ::std::string* GetTaskLogsRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskLogsRequest.token) - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Agent::set_allocated_name(::std::string* name) { - if (name != nullptr) { +inline void GetTaskLogsRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { } else { } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Agent.name) + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskLogsRequest.token) } -// repeated string supported_task_types = 2; -inline int Agent::supported_task_types_size() const { - return supported_task_types_.size(); +// ------------------------------------------------------------------- + +// GetTaskLogsResponse + +// repeated string results = 1; +inline int GetTaskLogsResponse::results_size() const { + return results_.size(); } -inline void Agent::clear_supported_task_types() { - supported_task_types_.Clear(); +inline void GetTaskLogsResponse::clear_results() { + results_.Clear(); } -inline const ::std::string& Agent::supported_task_types(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_.Get(index); +inline const ::std::string& GetTaskLogsResponse::results(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskLogsResponse.results) + return results_.Get(index); } -inline ::std::string* Agent::mutable_supported_task_types(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_.Mutable(index); +inline ::std::string* GetTaskLogsResponse::mutable_results(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskLogsResponse.results) + return results_.Mutable(index); } -inline void Agent::set_supported_task_types(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.supported_task_types) - supported_task_types_.Mutable(index)->assign(value); +inline void GetTaskLogsResponse::set_results(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskLogsResponse.results) + results_.Mutable(index)->assign(value); } #if LANG_CXX11 -inline void Agent::set_supported_task_types(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.supported_task_types) - supported_task_types_.Mutable(index)->assign(std::move(value)); +inline void GetTaskLogsResponse::set_results(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskLogsResponse.results) + results_.Mutable(index)->assign(std::move(value)); } #endif -inline void Agent::set_supported_task_types(int index, const char* value) { +inline void GetTaskLogsResponse::set_results(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - supported_task_types_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Agent.supported_task_types) + results_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskLogsResponse.results) } -inline void Agent::set_supported_task_types(int index, const char* value, size_t size) { - supported_task_types_.Mutable(index)->assign( +inline void GetTaskLogsResponse::set_results(int index, const char* value, size_t size) { + results_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Agent.supported_task_types) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskLogsResponse.results) } -inline ::std::string* Agent::add_supported_task_types() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_.Add(); +inline ::std::string* GetTaskLogsResponse::add_results() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.GetTaskLogsResponse.results) + return results_.Add(); } -inline void Agent::add_supported_task_types(const ::std::string& value) { - supported_task_types_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.Agent.supported_task_types) +inline void GetTaskLogsResponse::add_results(const ::std::string& value) { + results_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskLogsResponse.results) } #if LANG_CXX11 -inline void Agent::add_supported_task_types(::std::string&& value) { - supported_task_types_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.Agent.supported_task_types) +inline void GetTaskLogsResponse::add_results(::std::string&& value) { + results_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskLogsResponse.results) } #endif -inline void Agent::add_supported_task_types(const char* value) { +inline void GetTaskLogsResponse::add_results(const char* value) { GOOGLE_DCHECK(value != nullptr); - supported_task_types_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.Agent.supported_task_types) + results_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.GetTaskLogsResponse.results) } -inline void Agent::add_supported_task_types(const char* value, size_t size) { - supported_task_types_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.Agent.supported_task_types) +inline void GetTaskLogsResponse::add_results(const char* value, size_t size) { + results_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.GetTaskLogsResponse.results) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& -Agent::supported_task_types() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_; +GetTaskLogsResponse::results() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.GetTaskLogsResponse.results) + return results_; } inline ::google::protobuf::RepeatedPtrField<::std::string>* -Agent::mutable_supported_task_types() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Agent.supported_task_types) - return &supported_task_types_; +GetTaskLogsResponse::mutable_results() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.GetTaskLogsResponse.results) + return &results_; } -// ------------------------------------------------------------------- - -// GetAgentRequest - -// string name = 1; -inline void GetAgentRequest::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// string token = 2; +inline void GetTaskLogsResponse::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& GetAgentRequest::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetAgentRequest.name) - return name_.GetNoArena(); +inline const ::std::string& GetTaskLogsResponse::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskLogsResponse.token) + return token_.GetNoArena(); } -inline void GetAgentRequest::set_name(const ::std::string& value) { +inline void GetTaskLogsResponse::set_token(const ::std::string& value) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.GetAgentRequest.name) + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskLogsResponse.token) } #if LANG_CXX11 -inline void GetAgentRequest::set_name(::std::string&& value) { +inline void GetTaskLogsResponse::set_token(::std::string&& value) { - name_.SetNoArena( + token_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetAgentRequest.name) + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskLogsResponse.token) } #endif -inline void GetAgentRequest::set_name(const char* value) { +inline void GetTaskLogsResponse::set_token(const char* value) { GOOGLE_DCHECK(value != nullptr); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetAgentRequest.name) + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskLogsResponse.token) } -inline void GetAgentRequest::set_name(const char* value, size_t size) { +inline void GetTaskLogsResponse::set_token(const char* value, size_t size) { - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetAgentRequest.name) + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskLogsResponse.token) } -inline ::std::string* GetAgentRequest::mutable_name() { +inline ::std::string* GetTaskLogsResponse::mutable_token() { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetAgentRequest.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskLogsResponse.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* GetAgentRequest::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetAgentRequest.name) +inline ::std::string* GetTaskLogsResponse::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskLogsResponse.token) - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetAgentRequest::set_allocated_name(::std::string* name) { - if (name != nullptr) { +inline void GetTaskLogsResponse::set_allocated_token(::std::string* token) { + if (token != nullptr) { } else { } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetAgentRequest.name) + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskLogsResponse.token) } +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // ------------------------------------------------------------------- -// GetAgentResponse - -// .flyteidl.admin.Agent agent = 1; -inline bool GetAgentResponse::has_agent() const { - return this != internal_default_instance() && agent_ != nullptr; -} -inline void GetAgentResponse::clear_agent() { - if (GetArenaNoVirtual() == nullptr && agent_ != nullptr) { - delete agent_; - } - agent_ = nullptr; -} -inline const ::flyteidl::admin::Agent& GetAgentResponse::agent() const { - const ::flyteidl::admin::Agent* p = agent_; - // @@protoc_insertion_point(field_get:flyteidl.admin.GetAgentResponse.agent) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Agent_default_instance_); -} -inline ::flyteidl::admin::Agent* GetAgentResponse::release_agent() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetAgentResponse.agent) - - ::flyteidl::admin::Agent* temp = agent_; - agent_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Agent* GetAgentResponse::mutable_agent() { - - if (agent_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Agent>(GetArenaNoVirtual()); - agent_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetAgentResponse.agent) - return agent_; -} -inline void GetAgentResponse::set_allocated_agent(::flyteidl::admin::Agent* agent) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete agent_; - } - if (agent) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - agent = ::google::protobuf::internal::GetOwnedMessage( - message_arena, agent, submessage_arena); - } - - } else { - - } - agent_ = agent; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetAgentResponse.agent) -} - // ------------------------------------------------------------------- -// ListAgentsRequest - // ------------------------------------------------------------------- -// ListAgentsResponse - -// repeated .flyteidl.admin.Agent agents = 1; -inline int ListAgentsResponse::agents_size() const { - return agents_.size(); -} -inline void ListAgentsResponse::clear_agents() { - agents_.Clear(); -} -inline ::flyteidl::admin::Agent* ListAgentsResponse::mutable_agents(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ListAgentsResponse.agents) - return agents_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >* -ListAgentsResponse::mutable_agents() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ListAgentsResponse.agents) - return &agents_; -} -inline const ::flyteidl::admin::Agent& ListAgentsResponse::agents(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ListAgentsResponse.agents) - return agents_.Get(index); -} -inline ::flyteidl::admin::Agent* ListAgentsResponse::add_agents() { - // @@protoc_insertion_point(field_add:flyteidl.admin.ListAgentsResponse.agents) - return agents_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >& -ListAgentsResponse::agents() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ListAgentsResponse.agents) - return agents_; -} +// ------------------------------------------------------------------- -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc index cc19b46d3c..c96ae09bdb 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc @@ -20,6 +20,7 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::p extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; namespace flyteidl { namespace core { @@ -31,6 +32,10 @@ class SpanDefaultTypeInternal { const ::flyteidl::core::TaskExecutionIdentifier* task_id_; ::google::protobuf::internal::ArenaStringPtr operation_id_; } _Span_default_instance_; +class ExecutionMetricResultDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionMetricResult_default_instance_; } // namespace core } // namespace flyteidl static void InitDefaultsSpan_flyteidl_2fcore_2fmetrics_2eproto() { @@ -51,11 +56,27 @@ ::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; +static void InitDefaultsExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ExecutionMetricResult_default_instance_; + new (ptr) ::flyteidl::core::ExecutionMetricResult(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ExecutionMetricResult::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto}, { + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; + void InitDefaults_flyteidl_2fcore_2fmetrics_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto[1]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto[2]; constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fmetrics_2eproto = nullptr; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fmetrics_2eproto = nullptr; @@ -73,50 +94,63 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fmetrics_2eproto:: offsetof(::flyteidl::core::SpanDefaultTypeInternal, operation_id_), PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, spans_), PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionMetricResult, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionMetricResult, metric_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionMetricResult, data_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::core::Span)}, + { 13, -1, sizeof(::flyteidl::core::ExecutionMetricResult)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::core::_Span_default_instance_), + reinterpret_cast(&::flyteidl::core::_ExecutionMetricResult_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fmetrics_2eproto = { {}, AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto, "flyteidl/core/metrics.proto", schemas, file_default_instances, TableStruct_flyteidl_2fcore_2fmetrics_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto, 1, file_level_enum_descriptors_flyteidl_2fcore_2fmetrics_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fmetrics_2eproto, + file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto, 2, file_level_enum_descriptors_flyteidl_2fcore_2fmetrics_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fmetrics_2eproto, }; const char descriptor_table_protodef_flyteidl_2fcore_2fmetrics_2eproto[] = "\n\033flyteidl/core/metrics.proto\022\rflyteidl." "core\032\036flyteidl/core/identifier.proto\032\037go" - "ogle/protobuf/timestamp.proto\"\337\002\n\004Span\022." - "\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Tim" - "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" - "uf.Timestamp\022A\n\013workflow_id\030\003 \001(\0132*.flyt" - "eidl.core.WorkflowExecutionIdentifierH\000\022" - "9\n\007node_id\030\004 \001(\0132&.flyteidl.core.NodeExe" - "cutionIdentifierH\000\0229\n\007task_id\030\005 \001(\0132&.fl" - "yteidl.core.TaskExecutionIdentifierH\000\022\026\n" - "\014operation_id\030\006 \001(\tH\000\022\"\n\005spans\030\007 \003(\0132\023.f" - "lyteidl.core.SpanB\004\n\002idBdata_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +class ExecutionMetricResult::HasBitSetters { + public: + static const ::google::protobuf::Struct& data(const ExecutionMetricResult* msg); +}; + +const ::google::protobuf::Struct& +ExecutionMetricResult::HasBitSetters::data(const ExecutionMetricResult* msg) { + return *msg->data_; +} +void ExecutionMetricResult::clear_data() { + if (GetArenaNoVirtual() == nullptr && data_ != nullptr) { + delete data_; + } + data_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionMetricResult::kMetricFieldNumber; +const int ExecutionMetricResult::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionMetricResult::ExecutionMetricResult() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ExecutionMetricResult) +} +ExecutionMetricResult::ExecutionMetricResult(const ExecutionMetricResult& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metric_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metric().size() > 0) { + metric_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_); + } + if (from.has_data()) { + data_ = new ::google::protobuf::Struct(*from.data_); + } else { + data_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ExecutionMetricResult) +} + +void ExecutionMetricResult::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto.base); + metric_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_ = nullptr; +} + +ExecutionMetricResult::~ExecutionMetricResult() { + // @@protoc_insertion_point(destructor:flyteidl.core.ExecutionMetricResult) + SharedDtor(); +} + +void ExecutionMetricResult::SharedDtor() { + metric_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete data_; +} + +void ExecutionMetricResult::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionMetricResult& ExecutionMetricResult::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionMetricResult_flyteidl_2fcore_2fmetrics_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionMetricResult::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ExecutionMetricResult) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metric_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && data_ != nullptr) { + delete data_; + } + data_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionMetricResult::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string metric = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ExecutionMetricResult.metric"); + object = msg->mutable_metric(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Struct data = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionMetricResult::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ExecutionMetricResult) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string metric = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metric())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric().data(), static_cast(this->metric().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ExecutionMetricResult.metric")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct data = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ExecutionMetricResult) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ExecutionMetricResult) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionMetricResult::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ExecutionMetricResult) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string metric = 1; + if (this->metric().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric().data(), static_cast(this->metric().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionMetricResult.metric"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->metric(), output); + } + + // .google.protobuf.Struct data = 2; + if (this->has_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::data(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ExecutionMetricResult) +} + +::google::protobuf::uint8* ExecutionMetricResult::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ExecutionMetricResult) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string metric = 1; + if (this->metric().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric().data(), static_cast(this->metric().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionMetricResult.metric"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->metric(), target); + } + + // .google.protobuf.Struct data = 2; + if (this->has_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::data(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ExecutionMetricResult) + return target; +} + +size_t ExecutionMetricResult::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ExecutionMetricResult) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string metric = 1; + if (this->metric().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metric()); + } + + // .google.protobuf.Struct data = 2; + if (this->has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionMetricResult::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ExecutionMetricResult) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionMetricResult* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ExecutionMetricResult) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ExecutionMetricResult) + MergeFrom(*source); + } +} + +void ExecutionMetricResult::MergeFrom(const ExecutionMetricResult& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ExecutionMetricResult) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.metric().size() > 0) { + + metric_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_); + } + if (from.has_data()) { + mutable_data()->::google::protobuf::Struct::MergeFrom(from.data()); + } +} + +void ExecutionMetricResult::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ExecutionMetricResult) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionMetricResult::CopyFrom(const ExecutionMetricResult& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ExecutionMetricResult) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionMetricResult::IsInitialized() const { + return true; +} + +void ExecutionMetricResult::Swap(ExecutionMetricResult* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionMetricResult::InternalSwap(ExecutionMetricResult* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + metric_.Swap(&other->metric_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(data_, other->data_); +} + +::google::protobuf::Metadata ExecutionMetricResult::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fmetrics_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto[kIndexInFileMessages]; +} + + // @@protoc_insertion_point(namespace_scope) } // namespace core } // namespace flyteidl @@ -923,6 +1327,9 @@ namespace protobuf { template<> PROTOBUF_NOINLINE ::flyteidl::core::Span* Arena::CreateMaybeMessage< ::flyteidl::core::Span >(Arena* arena) { return Arena::CreateInternal< ::flyteidl::core::Span >(arena); } +template<> PROTOBUF_NOINLINE ::flyteidl::core::ExecutionMetricResult* Arena::CreateMaybeMessage< ::flyteidl::core::ExecutionMetricResult >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ExecutionMetricResult >(arena); +} } // namespace protobuf } // namespace google diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h index c19d6f944f..8c7140c273 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h @@ -33,6 +33,7 @@ #include #include "flyteidl/core/identifier.pb.h" #include +#include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto @@ -43,7 +44,7 @@ struct TableStruct_flyteidl_2fcore_2fmetrics_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] + static const ::google::protobuf::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -52,6 +53,9 @@ struct TableStruct_flyteidl_2fcore_2fmetrics_2eproto { void AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto(); namespace flyteidl { namespace core { +class ExecutionMetricResult; +class ExecutionMetricResultDefaultTypeInternal; +extern ExecutionMetricResultDefaultTypeInternal _ExecutionMetricResult_default_instance_; class Span; class SpanDefaultTypeInternal; extern SpanDefaultTypeInternal _Span_default_instance_; @@ -59,6 +63,7 @@ extern SpanDefaultTypeInternal _Span_default_instance_; } // namespace flyteidl namespace google { namespace protobuf { +template<> ::flyteidl::core::ExecutionMetricResult* Arena::CreateMaybeMessage<::flyteidl::core::ExecutionMetricResult>(Arena*); template<> ::flyteidl::core::Span* Arena::CreateMaybeMessage<::flyteidl::core::Span>(Arena*); } // namespace protobuf } // namespace google @@ -273,6 +278,136 @@ class Span final : friend struct ::TableStruct_flyteidl_2fcore_2fmetrics_2eproto; }; +// ------------------------------------------------------------------- + +class ExecutionMetricResult final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ExecutionMetricResult) */ { + public: + ExecutionMetricResult(); + virtual ~ExecutionMetricResult(); + + ExecutionMetricResult(const ExecutionMetricResult& from); + + inline ExecutionMetricResult& operator=(const ExecutionMetricResult& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionMetricResult(ExecutionMetricResult&& from) noexcept + : ExecutionMetricResult() { + *this = ::std::move(from); + } + + inline ExecutionMetricResult& operator=(ExecutionMetricResult&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionMetricResult& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionMetricResult* internal_default_instance() { + return reinterpret_cast( + &_ExecutionMetricResult_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(ExecutionMetricResult* other); + friend void swap(ExecutionMetricResult& a, ExecutionMetricResult& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionMetricResult* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionMetricResult* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionMetricResult& from); + void MergeFrom(const ExecutionMetricResult& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionMetricResult* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string metric = 1; + void clear_metric(); + static const int kMetricFieldNumber = 1; + const ::std::string& metric() const; + void set_metric(const ::std::string& value); + #if LANG_CXX11 + void set_metric(::std::string&& value); + #endif + void set_metric(const char* value); + void set_metric(const char* value, size_t size); + ::std::string* mutable_metric(); + ::std::string* release_metric(); + void set_allocated_metric(::std::string* metric); + + // .google.protobuf.Struct data = 2; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 2; + const ::google::protobuf::Struct& data() const; + ::google::protobuf::Struct* release_data(); + ::google::protobuf::Struct* mutable_data(); + void set_allocated_data(::google::protobuf::Struct* data); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionMetricResult) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr metric_; + ::google::protobuf::Struct* data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fmetrics_2eproto; +}; // =================================================================== @@ -612,9 +747,114 @@ inline void Span::clear_has_id() { inline Span::IdCase Span::id_case() const { return Span::IdCase(_oneof_case_[0]); } +// ------------------------------------------------------------------- + +// ExecutionMetricResult + +// string metric = 1; +inline void ExecutionMetricResult::clear_metric() { + metric_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionMetricResult::metric() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionMetricResult.metric) + return metric_.GetNoArena(); +} +inline void ExecutionMetricResult::set_metric(const ::std::string& value) { + + metric_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionMetricResult.metric) +} +#if LANG_CXX11 +inline void ExecutionMetricResult::set_metric(::std::string&& value) { + + metric_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionMetricResult.metric) +} +#endif +inline void ExecutionMetricResult::set_metric(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + metric_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionMetricResult.metric) +} +inline void ExecutionMetricResult::set_metric(const char* value, size_t size) { + + metric_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionMetricResult.metric) +} +inline ::std::string* ExecutionMetricResult::mutable_metric() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionMetricResult.metric) + return metric_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionMetricResult::release_metric() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionMetricResult.metric) + + return metric_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionMetricResult::set_allocated_metric(::std::string* metric) { + if (metric != nullptr) { + + } else { + + } + metric_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metric); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionMetricResult.metric) +} + +// .google.protobuf.Struct data = 2; +inline bool ExecutionMetricResult::has_data() const { + return this != internal_default_instance() && data_ != nullptr; +} +inline const ::google::protobuf::Struct& ExecutionMetricResult::data() const { + const ::google::protobuf::Struct* p = data_; + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionMetricResult.data) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* ExecutionMetricResult::release_data() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionMetricResult.data) + + ::google::protobuf::Struct* temp = data_; + data_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* ExecutionMetricResult::mutable_data() { + + if (data_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + data_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionMetricResult.data) + return data_; +} +inline void ExecutionMetricResult::set_allocated_data(::google::protobuf::Struct* data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); + } + if (data) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(data)->GetArena(); + if (message_arena != submessage_arena) { + data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, data, submessage_arena); + } + + } else { + + } + data_ = data; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionMetricResult.data) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc index 0dd9e3d2d1..a167711437 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc @@ -23,6 +23,8 @@ static const char* AsyncAgentService_method_names[] = { "/flyteidl.service.AsyncAgentService/CreateTask", "/flyteidl.service.AsyncAgentService/GetTask", "/flyteidl.service.AsyncAgentService/DeleteTask", + "/flyteidl.service.AsyncAgentService/GetTaskMetrics", + "/flyteidl.service.AsyncAgentService/GetTaskLogs", }; std::unique_ptr< AsyncAgentService::Stub> AsyncAgentService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -35,6 +37,8 @@ AsyncAgentService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& : channel_(channel), rpcmethod_CreateTask_(AsyncAgentService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetTask_(AsyncAgentService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_DeleteTask_(AsyncAgentService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTaskMetrics_(AsyncAgentService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTaskLogs_(AsyncAgentService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status AsyncAgentService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) { @@ -121,6 +125,62 @@ ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* Async return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DeleteTaskResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); } +::grpc::Status AsyncAgentService::Stub::GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::flyteidl::admin::GetTaskMetricsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskMetrics_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskMetrics_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskMetricsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskMetrics_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskMetrics_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskMetrics_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>* AsyncAgentService::Stub::AsyncGetTaskMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskMetricsResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskMetrics_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>* AsyncAgentService::Stub::PrepareAsyncGetTaskMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskMetricsResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskMetrics_, context, request, false); +} + +::grpc::Status AsyncAgentService::Stub::GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::flyteidl::admin::GetTaskLogsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskLogs_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskLogs_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskLogsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskLogs_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskLogs_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::GetTaskLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskLogs_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>* AsyncAgentService::Stub::AsyncGetTaskLogsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskLogsResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskLogs_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>* AsyncAgentService::Stub::PrepareAsyncGetTaskLogsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskLogsResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskLogs_, context, request, false); +} + AsyncAgentService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( AsyncAgentService_method_names[0], @@ -137,6 +197,16 @@ AsyncAgentService::Service::Service() { ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>( std::mem_fn(&AsyncAgentService::Service::DeleteTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::GetTaskMetricsRequest, ::flyteidl::admin::GetTaskMetricsResponse>( + std::mem_fn(&AsyncAgentService::Service::GetTaskMetrics), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::GetTaskLogsRequest, ::flyteidl::admin::GetTaskLogsResponse>( + std::mem_fn(&AsyncAgentService::Service::GetTaskLogs), this))); } AsyncAgentService::Service::~Service() { @@ -163,6 +233,20 @@ ::grpc::Status AsyncAgentService::Service::DeleteTask(::grpc::ServerContext* con return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status AsyncAgentService::Service::GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AsyncAgentService::Service::GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + static const char* AgentMetadataService_method_names[] = { "/flyteidl.service.AgentMetadataService/GetAgent", diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h index e1cb5da223..e1ab9cd6e5 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h @@ -73,6 +73,26 @@ class AsyncAgentService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); } + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // * OutOfRange if metrics are not available for the specified task time range + // * various other errors + virtual ::grpc::Status GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::flyteidl::admin::GetTaskMetricsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskMetricsResponse>> AsyncGetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskMetricsResponse>>(AsyncGetTaskMetricsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskMetricsResponse>> PrepareAsyncGetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskMetricsResponse>>(PrepareAsyncGetTaskMetricsRaw(context, request, cq)); + } + // GetTaskLogs returns task execution logs, if available. + virtual ::grpc::Status GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::flyteidl::admin::GetTaskLogsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskLogsResponse>> AsyncGetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskLogsResponse>>(AsyncGetTaskLogsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskLogsResponse>> PrepareAsyncGetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskLogsResponse>>(PrepareAsyncGetTaskLogsRaw(context, request, cq)); + } class experimental_async_interface { public: virtual ~experimental_async_interface() {} @@ -91,6 +111,20 @@ class AsyncAgentService final { virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) = 0; virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // * OutOfRange if metrics are not available for the specified task time range + // * various other errors + virtual void GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response, std::function) = 0; + virtual void GetTaskMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskMetricsResponse* response, std::function) = 0; + virtual void GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTaskMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // GetTaskLogs returns task execution logs, if available. + virtual void GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response, std::function) = 0; + virtual void GetTaskLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskLogsResponse* response, std::function) = 0; + virtual void GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTaskLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -100,6 +134,10 @@ class AsyncAgentService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskMetricsResponse>* AsyncGetTaskMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskMetricsResponse>* PrepareAsyncGetTaskMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskLogsResponse>* AsyncGetTaskLogsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskLogsResponse>* PrepareAsyncGetTaskLogsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -125,6 +163,20 @@ class AsyncAgentService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); } + ::grpc::Status GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::flyteidl::admin::GetTaskMetricsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>> AsyncGetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>>(AsyncGetTaskMetricsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>> PrepareAsyncGetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>>(PrepareAsyncGetTaskMetricsRaw(context, request, cq)); + } + ::grpc::Status GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::flyteidl::admin::GetTaskLogsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>> AsyncGetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>>(AsyncGetTaskLogsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>> PrepareAsyncGetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>>(PrepareAsyncGetTaskLogsRaw(context, request, cq)); + } class experimental_async final : public StubInterface::experimental_async_interface { public: @@ -140,6 +192,14 @@ class AsyncAgentService final { void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) override; void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response, std::function) override; + void GetTaskMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskMetricsResponse* response, std::function) override; + void GetTaskMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response, std::function) override; + void GetTaskLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskLogsResponse* response, std::function) override; + void GetTaskLogs(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskLogs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskLogsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -157,9 +217,15 @@ class AsyncAgentService final { ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>* AsyncGetTaskMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskMetricsResponse>* PrepareAsyncGetTaskMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskMetricsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>* AsyncGetTaskLogsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskLogsResponse>* PrepareAsyncGetTaskLogsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskLogsRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; const ::grpc::internal::RpcMethod rpcmethod_GetTask_; const ::grpc::internal::RpcMethod rpcmethod_DeleteTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetTaskMetrics_; + const ::grpc::internal::RpcMethod rpcmethod_GetTaskLogs_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -173,6 +239,14 @@ class AsyncAgentService final { virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response); // Delete the task resource. virtual ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response); + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // * OutOfRange if metrics are not available for the specified task time range + // * various other errors + virtual ::grpc::Status GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response); + // GetTaskLogs returns task execution logs, if available. + virtual ::grpc::Status GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response); }; template class WithAsyncMethod_CreateTask : public BaseClass { @@ -234,7 +308,47 @@ class AsyncAgentService final { ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateTask > > AsyncService; + template + class WithAsyncMethod_GetTaskMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTaskMetrics() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetTaskMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskMetrics(::grpc::ServerContext* context, ::flyteidl::admin::GetTaskMetricsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetTaskMetricsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTaskLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTaskLogs() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_GetTaskLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskLogs(::grpc::ServerContext* context, ::flyteidl::admin::GetTaskLogsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetTaskLogsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateTask > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { private: @@ -328,7 +442,69 @@ class AsyncAgentService final { } virtual void DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateTask > > ExperimentalCallbackService; + template + class ExperimentalWithCallbackMethod_GetTaskMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTaskMetrics() { + ::grpc::Service::experimental().MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskMetricsRequest, ::flyteidl::admin::GetTaskMetricsResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::GetTaskMetricsRequest* request, + ::flyteidl::admin::GetTaskMetricsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTaskMetrics(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTaskMetrics( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetTaskMetricsRequest, ::flyteidl::admin::GetTaskMetricsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskMetricsRequest, ::flyteidl::admin::GetTaskMetricsResponse>*>( + ::grpc::Service::experimental().GetHandler(3)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTaskMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetTaskLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTaskLogs() { + ::grpc::Service::experimental().MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskLogsRequest, ::flyteidl::admin::GetTaskLogsResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::GetTaskLogsRequest* request, + ::flyteidl::admin::GetTaskLogsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTaskLogs(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTaskLogs( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetTaskLogsRequest, ::flyteidl::admin::GetTaskLogsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskLogsRequest, ::flyteidl::admin::GetTaskLogsResponse>*>( + ::grpc::Service::experimental().GetHandler(4)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTaskLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateTask > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateTask : public BaseClass { private: @@ -381,6 +557,40 @@ class AsyncAgentService final { } }; template + class WithGenericMethod_GetTaskMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTaskMetrics() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetTaskMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTaskLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTaskLogs() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_GetTaskLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_CreateTask : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -441,6 +651,46 @@ class AsyncAgentService final { } }; template + class WithRawMethod_GetTaskMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTaskMetrics() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetTaskMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskMetrics(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTaskLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTaskLogs() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_GetTaskLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskLogs(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -516,6 +766,56 @@ class AsyncAgentService final { virtual void DeleteTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template + class ExperimentalWithRawCallbackMethod_GetTaskMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTaskMetrics() { + ::grpc::Service::experimental().MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTaskMetrics(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTaskMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskMetrics(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetTaskLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTaskLogs() { + ::grpc::Service::experimental().MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTaskLogs(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTaskLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskLogs(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template class WithStreamedUnaryMethod_CreateTask : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -575,9 +875,49 @@ class AsyncAgentService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedDeleteTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::DeleteTaskRequest,::flyteidl::admin::DeleteTaskResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateTask > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_GetTaskMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTaskMetrics() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetTaskMetricsRequest, ::flyteidl::admin::GetTaskMetricsResponse>(std::bind(&WithStreamedUnaryMethod_GetTaskMetrics::StreamedGetTaskMetrics, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTaskMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTaskMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskMetricsRequest* request, ::flyteidl::admin::GetTaskMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTaskMetrics(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetTaskMetricsRequest,::flyteidl::admin::GetTaskMetricsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTaskLogs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTaskLogs() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetTaskLogsRequest, ::flyteidl::admin::GetTaskLogsResponse>(std::bind(&WithStreamedUnaryMethod_GetTaskLogs::StreamedGetTaskLogs, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTaskLogs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTaskLogs(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskLogsRequest* request, ::flyteidl::admin::GetTaskLogsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTaskLogs(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetTaskLogsRequest,::flyteidl::admin::GetTaskLogsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateTask > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateTask > > StreamedService; + typedef WithStreamedUnaryMethod_CreateTask > > > > StreamedService; }; // AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc index 4b7c5d0557..3d6379889b 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc @@ -39,27 +39,32 @@ ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_fl const char descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto[] = "\n\034flyteidl/service/agent.proto\022\020flyteidl" ".service\032\034google/api/annotations.proto\032\032" - "flyteidl/admin/agent.proto2\217\002\n\021AsyncAgen" + "flyteidl/admin/agent.proto2\314\003\n\021AsyncAgen" "tService\022U\n\nCreateTask\022!.flyteidl.admin." "CreateTaskRequest\032\".flyteidl.admin.Creat" "eTaskResponse\"\000\022L\n\007GetTask\022\036.flyteidl.ad" "min.GetTaskRequest\032\037.flyteidl.admin.GetT" "askResponse\"\000\022U\n\nDeleteTask\022!.flyteidl.a" "dmin.DeleteTaskRequest\032\".flyteidl.admin." - "DeleteTaskResponse\"\0002\360\001\n\024AgentMetadataSe" - "rvice\022k\n\010GetAgent\022\037.flyteidl.admin.GetAg" - "entRequest\032 .flyteidl.admin.GetAgentResp" - "onse\"\034\202\323\344\223\002\026\022\024/api/v1/agent/{name}\022k\n\nLi" - "stAgents\022!.flyteidl.admin.ListAgentsRequ" - "est\032\".flyteidl.admin.ListAgentsResponse\"" - "\026\202\323\344\223\002\020\022\016/api/v1/agentsB\?Z=github.com/fl" - "yteorg/flyte/flyteidl/gen/pb-go/flyteidl" - "/serviceb\006proto3" + "DeleteTaskResponse\"\000\022a\n\016GetTaskMetrics\022%" + ".flyteidl.admin.GetTaskMetricsRequest\032&." + "flyteidl.admin.GetTaskMetricsResponse\"\000\022" + "X\n\013GetTaskLogs\022\".flyteidl.admin.GetTaskL" + "ogsRequest\032#.flyteidl.admin.GetTaskLogsR" + "esponse\"\0002\360\001\n\024AgentMetadataService\022k\n\010Ge" + "tAgent\022\037.flyteidl.admin.GetAgentRequest\032" + " .flyteidl.admin.GetAgentResponse\"\034\202\323\344\223\002" + "\026\022\024/api/v1/agent/{name}\022k\n\nListAgents\022!." + "flyteidl.admin.ListAgentsRequest\032\".flyte" + "idl.admin.ListAgentsResponse\"\026\202\323\344\223\002\020\022\016/a" + "pi/v1/agentsB\?Z=github.com/flyteorg/flyt" + "e/flyteidl/gen/pb-go/flyteidl/serviceb\006p" + "roto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fagent_2eproto = { false, InitDefaults_flyteidl_2fservice_2fagent_2eproto, descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto, - "flyteidl/service/agent.proto", &assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto, 696, + "flyteidl/service/agent.proto", &assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto, 885, }; void AddDescriptors_flyteidl_2fservice_2fagent_2eproto() { diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index 2e255f5c88..7c53c6fc7d 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -7,6 +7,8 @@ import ( fmt "fmt" core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) @@ -749,6 +751,254 @@ func (m *ListAgentsResponse) GetAgents() []*Agent { return nil } +// A request to get the metrics from a task execution. +type GetTaskMetricsRequest struct { + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // The metrics to query. If empty, will return a default set of metrics. + // e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG + Queries []string `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + // Start timestamp, inclusive. + StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // End timestamp, inclusive.. + EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Query resolution step width in duration format or float number of seconds. + Step *duration.Duration `protobuf:"bytes,6,opt,name=step,proto3" json:"step,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskMetricsRequest) Reset() { *m = GetTaskMetricsRequest{} } +func (m *GetTaskMetricsRequest) String() string { return proto.CompactTextString(m) } +func (*GetTaskMetricsRequest) ProtoMessage() {} +func (*GetTaskMetricsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{13} +} + +func (m *GetTaskMetricsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskMetricsRequest.Unmarshal(m, b) +} +func (m *GetTaskMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskMetricsRequest.Marshal(b, m, deterministic) +} +func (m *GetTaskMetricsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskMetricsRequest.Merge(m, src) +} +func (m *GetTaskMetricsRequest) XXX_Size() int { + return xxx_messageInfo_GetTaskMetricsRequest.Size(m) +} +func (m *GetTaskMetricsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskMetricsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskMetricsRequest proto.InternalMessageInfo + +func (m *GetTaskMetricsRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *GetTaskMetricsRequest) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +func (m *GetTaskMetricsRequest) GetQueries() []string { + if m != nil { + return m.Queries + } + return nil +} + +func (m *GetTaskMetricsRequest) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *GetTaskMetricsRequest) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *GetTaskMetricsRequest) GetStep() *duration.Duration { + if m != nil { + return m.Step + } + return nil +} + +// A response containing a list of metrics for a task execution. +type GetTaskMetricsResponse struct { + // The execution metric results. + Results []*core.ExecutionMetricResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskMetricsResponse) Reset() { *m = GetTaskMetricsResponse{} } +func (m *GetTaskMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*GetTaskMetricsResponse) ProtoMessage() {} +func (*GetTaskMetricsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{14} +} + +func (m *GetTaskMetricsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskMetricsResponse.Unmarshal(m, b) +} +func (m *GetTaskMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskMetricsResponse.Marshal(b, m, deterministic) +} +func (m *GetTaskMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskMetricsResponse.Merge(m, src) +} +func (m *GetTaskMetricsResponse) XXX_Size() int { + return xxx_messageInfo_GetTaskMetricsResponse.Size(m) +} +func (m *GetTaskMetricsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskMetricsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskMetricsResponse proto.InternalMessageInfo + +func (m *GetTaskMetricsResponse) GetResults() []*core.ExecutionMetricResult { + if m != nil { + return m.Results + } + return nil +} + +// A request to get the log from a task execution. +type GetTaskLogsRequest struct { + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // Number of lines to return. + Lines uint64 `protobuf:"varint,3,opt,name=lines,proto3" json:"lines,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskLogsRequest) Reset() { *m = GetTaskLogsRequest{} } +func (m *GetTaskLogsRequest) String() string { return proto.CompactTextString(m) } +func (*GetTaskLogsRequest) ProtoMessage() {} +func (*GetTaskLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{15} +} + +func (m *GetTaskLogsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskLogsRequest.Unmarshal(m, b) +} +func (m *GetTaskLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskLogsRequest.Marshal(b, m, deterministic) +} +func (m *GetTaskLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskLogsRequest.Merge(m, src) +} +func (m *GetTaskLogsRequest) XXX_Size() int { + return xxx_messageInfo_GetTaskLogsRequest.Size(m) +} +func (m *GetTaskLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskLogsRequest proto.InternalMessageInfo + +func (m *GetTaskLogsRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *GetTaskLogsRequest) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +func (m *GetTaskLogsRequest) GetLines() uint64 { + if m != nil { + return m.Lines + } + return 0 +} + +func (m *GetTaskLogsRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// A response containing the logs for a task execution. +type GetTaskLogsResponse struct { + // The execution log results. + Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskLogsResponse) Reset() { *m = GetTaskLogsResponse{} } +func (m *GetTaskLogsResponse) String() string { return proto.CompactTextString(m) } +func (*GetTaskLogsResponse) ProtoMessage() {} +func (*GetTaskLogsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{16} +} + +func (m *GetTaskLogsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskLogsResponse.Unmarshal(m, b) +} +func (m *GetTaskLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskLogsResponse.Marshal(b, m, deterministic) +} +func (m *GetTaskLogsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskLogsResponse.Merge(m, src) +} +func (m *GetTaskLogsResponse) XXX_Size() int { + return xxx_messageInfo_GetTaskLogsResponse.Size(m) +} +func (m *GetTaskLogsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskLogsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskLogsResponse proto.InternalMessageInfo + +func (m *GetTaskLogsResponse) GetResults() []string { + if m != nil { + return m.Results + } + return nil +} + +func (m *GetTaskLogsResponse) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + func init() { proto.RegisterEnum("flyteidl.admin.State", State_name, State_value) proto.RegisterType((*TaskExecutionMetadata)(nil), "flyteidl.admin.TaskExecutionMetadata") @@ -767,67 +1017,83 @@ func init() { proto.RegisterType((*GetAgentResponse)(nil), "flyteidl.admin.GetAgentResponse") proto.RegisterType((*ListAgentsRequest)(nil), "flyteidl.admin.ListAgentsRequest") proto.RegisterType((*ListAgentsResponse)(nil), "flyteidl.admin.ListAgentsResponse") + proto.RegisterType((*GetTaskMetricsRequest)(nil), "flyteidl.admin.GetTaskMetricsRequest") + proto.RegisterType((*GetTaskMetricsResponse)(nil), "flyteidl.admin.GetTaskMetricsResponse") + proto.RegisterType((*GetTaskLogsRequest)(nil), "flyteidl.admin.GetTaskLogsRequest") + proto.RegisterType((*GetTaskLogsResponse)(nil), "flyteidl.admin.GetTaskLogsResponse") } func init() { proto.RegisterFile("flyteidl/admin/agent.proto", fileDescriptor_c434e52bb0028071) } var fileDescriptor_c434e52bb0028071 = []byte{ - // 901 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x7f, 0x6f, 0xe3, 0x44, - 0x10, 0x6d, 0x7e, 0x36, 0x99, 0xb4, 0xbd, 0x64, 0xaf, 0x01, 0x37, 0x77, 0xa0, 0xca, 0xa8, 0xa8, - 0xe2, 0x74, 0x09, 0xd7, 0xa2, 0xa3, 0x80, 0xe0, 0x94, 0xb6, 0xa6, 0x57, 0x29, 0x8d, 0xaa, 0x6d, - 0x8a, 0x00, 0x09, 0xa2, 0x4d, 0x32, 0x35, 0x56, 0x1c, 0xdb, 0x78, 0xd7, 0xd5, 0x05, 0xf1, 0x1f, - 0x5f, 0x82, 0xef, 0xc2, 0x97, 0x43, 0xde, 0x5d, 0x3b, 0x71, 0xc8, 0x9d, 0x7a, 0xe2, 0x3f, 0xef, - 0xbc, 0xb7, 0x6f, 0xde, 0xce, 0xcc, 0x66, 0x03, 0xad, 0x3b, 0x77, 0x2e, 0xd0, 0x99, 0xb8, 0x1d, - 0x36, 0x99, 0x39, 0x5e, 0x87, 0xd9, 0xe8, 0x89, 0x76, 0x10, 0xfa, 0xc2, 0x27, 0x3b, 0x09, 0xd6, - 0x96, 0x58, 0xeb, 0x69, 0xca, 0x1d, 0xfb, 0x21, 0x76, 0x5c, 0x47, 0x60, 0xc8, 0x5c, 0xae, 0xd8, - 0xad, 0xbd, 0x2c, 0x2a, 0x18, 0x9f, 0x26, 0xd0, 0x47, 0x59, 0xc8, 0xf1, 0x04, 0x86, 0x77, 0x6c, - 0x8c, 0x1a, 0xfe, 0x78, 0x05, 0x9e, 0xa0, 0x27, 0x9c, 0x3b, 0x07, 0xc3, 0xf5, 0xdb, 0xf1, 0x0d, - 0x8e, 0x23, 0xe1, 0xf8, 0x9e, 0x82, 0xcd, 0xbf, 0x4b, 0xd0, 0x1c, 0x30, 0x3e, 0xb5, 0x92, 0xf8, - 0x15, 0x0a, 0x36, 0x61, 0x82, 0x11, 0x0a, 0x8d, 0xd8, 0xc6, 0x30, 0xdd, 0x31, 0x74, 0x26, 0x46, - 0x6e, 0x3f, 0x77, 0x58, 0x3b, 0xfa, 0xb4, 0x9d, 0x1e, 0x2e, 0x16, 0x6d, 0x67, 0x04, 0x2e, 0x53, - 0x07, 0xf4, 0x91, 0xc8, 0x02, 0xe4, 0x29, 0x54, 0x3d, 0x36, 0x43, 0x1e, 0xb0, 0x31, 0x1a, 0xf9, - 0xfd, 0xdc, 0x61, 0x95, 0x2e, 0x02, 0xe4, 0x12, 0xca, 0x2e, 0x1b, 0xa1, 0xcb, 0x8d, 0xc2, 0x7e, - 0xe1, 0xb0, 0x76, 0xf4, 0xa2, 0x9d, 0xad, 0x61, 0x7b, 0xad, 0xd1, 0x76, 0x4f, 0xee, 0xb1, 0x3c, - 0x11, 0xce, 0xa9, 0x16, 0x20, 0x3f, 0x42, 0x8d, 0x79, 0x9e, 0x2f, 0x58, 0xcc, 0xe4, 0x46, 0x51, - 0xea, 0xbd, 0x7c, 0x98, 0x5e, 0x77, 0xb1, 0x51, 0x89, 0x2e, 0x4b, 0x91, 0x36, 0x3c, 0x9e, 0x9e, - 0xf0, 0x21, 0xc7, 0xf0, 0xde, 0x19, 0xe3, 0x90, 0x8d, 0xc7, 0x7e, 0xe4, 0x09, 0xa3, 0x24, 0x0f, - 0xd3, 0x98, 0x9e, 0xf0, 0x1b, 0x85, 0x74, 0x15, 0x40, 0x04, 0x34, 0xd1, 0xbb, 0x77, 0x42, 0xdf, - 0x9b, 0xa1, 0x27, 0x86, 0xf7, 0x2c, 0x74, 0xd8, 0xc8, 0x45, 0x6e, 0x94, 0xa5, 0xa7, 0x57, 0x0f, - 0xf3, 0x64, 0x2d, 0x24, 0x7e, 0x48, 0x14, 0x94, 0xb9, 0x5d, 0x5c, 0x03, 0xb5, 0xbe, 0x82, 0xda, - 0x52, 0x59, 0x48, 0x1d, 0x0a, 0x53, 0x9c, 0xcb, 0xee, 0x55, 0x69, 0xfc, 0x49, 0x76, 0xa1, 0x74, - 0xcf, 0xdc, 0x28, 0xe9, 0x82, 0x5a, 0x7c, 0x9d, 0x3f, 0xc9, 0xb5, 0xbe, 0x83, 0xfa, 0x6a, 0x05, - 0xde, 0x6b, 0xff, 0x05, 0xec, 0xbd, 0xd5, 0xed, 0xfb, 0x08, 0x99, 0x7f, 0xe5, 0xa1, 0x71, 0x16, - 0x22, 0x13, 0x18, 0xd7, 0x84, 0xe2, 0xef, 0x11, 0x72, 0x41, 0x5e, 0x40, 0xd9, 0xf1, 0x82, 0x48, - 0x70, 0x3d, 0x8b, 0x7b, 0x2b, 0xb3, 0xd8, 0x53, 0x17, 0xeb, 0x8a, 0x05, 0x54, 0x13, 0xc9, 0x97, - 0x50, 0x11, 0x38, 0x0b, 0x5c, 0x26, 0x54, 0x96, 0xda, 0xd1, 0x93, 0x35, 0x03, 0x3c, 0xd0, 0x14, - 0x9a, 0x92, 0xc9, 0x27, 0xb0, 0xed, 0x47, 0x22, 0x88, 0xc4, 0x30, 0x08, 0xf1, 0xce, 0x79, 0x63, - 0x14, 0xa4, 0xc7, 0x2d, 0x15, 0xbc, 0x96, 0x31, 0xf2, 0x0b, 0x7c, 0xb8, 0x72, 0x4f, 0x66, 0xba, - 0x6b, 0x46, 0x51, 0x26, 0x3b, 0x78, 0x50, 0x8b, 0x69, 0x53, 0xac, 0x0b, 0x9b, 0x7f, 0x00, 0x59, - 0x2e, 0x02, 0x0f, 0x7c, 0x8f, 0x23, 0x39, 0x80, 0xed, 0x10, 0xb9, 0x1f, 0x85, 0x63, 0x94, 0xe9, - 0x64, 0x31, 0xb6, 0x5e, 0x6f, 0xd0, 0xad, 0x24, 0x1c, 0x0b, 0x90, 0x97, 0x50, 0x49, 0xd6, 0xfa, - 0xe4, 0xc6, 0xaa, 0x19, 0xaa, 0xf1, 0xd7, 0x1b, 0x34, 0xe5, 0x9e, 0x96, 0xa0, 0x10, 0x22, 0x37, - 0x29, 0xec, 0x5c, 0xa0, 0x58, 0xae, 0xfe, 0x13, 0xa8, 0xca, 0xc3, 0x8a, 0x79, 0x80, 0xba, 0x8b, - 0x95, 0x38, 0x30, 0x98, 0x07, 0xb2, 0x5c, 0x59, 0x53, 0x71, 0xca, 0xad, 0xac, 0x25, 0xf3, 0x4f, - 0x78, 0x94, 0x6a, 0xea, 0xc3, 0x7c, 0xb1, 0xe4, 0x32, 0xf7, 0x6e, 0x97, 0x0b, 0x8f, 0xe4, 0x18, - 0xaa, 0xae, 0x6f, 0x0f, 0x5d, 0xc7, 0x9b, 0x72, 0x23, 0x2f, 0x2f, 0xd3, 0x07, 0x6b, 0xda, 0xda, - 0xf3, 0x6d, 0x5a, 0x71, 0x7d, 0xbb, 0x17, 0xf3, 0xcc, 0x7f, 0x72, 0x50, 0x49, 0xb4, 0xc8, 0x33, - 0x28, 0x71, 0x11, 0x0f, 0x45, 0x9c, 0x74, 0xe7, 0xa8, 0xb9, 0x9a, 0xf4, 0x26, 0x06, 0xa9, 0xe2, - 0x90, 0x63, 0xd8, 0x54, 0x6d, 0xe7, 0xba, 0x92, 0xef, 0x18, 0xbc, 0x84, 0x49, 0x0c, 0xd8, 0x9c, - 0x21, 0xe7, 0xcc, 0x46, 0x3d, 0x3a, 0xc9, 0x32, 0xeb, 0xbe, 0xf8, 0x40, 0xf7, 0xb7, 0xd0, 0x38, - 0x47, 0x17, 0xb3, 0x17, 0xe2, 0xff, 0xb7, 0x64, 0x17, 0xc8, 0xb2, 0xac, 0xea, 0x8a, 0x79, 0x05, - 0xa5, 0x6e, 0xfc, 0x9e, 0x11, 0x02, 0xc5, 0xf8, 0x37, 0x5a, 0x6b, 0xcb, 0x6f, 0xf2, 0x39, 0xec, - 0xf2, 0x28, 0x08, 0xfc, 0x50, 0xe0, 0x64, 0x98, 0xa6, 0x57, 0x7d, 0xa8, 0x52, 0x92, 0x62, 0x03, - 0x6d, 0x84, 0x9b, 0x07, 0xb2, 0xef, 0x52, 0x31, 0x71, 0xbe, 0x46, 0xd8, 0x7c, 0x05, 0xf5, 0x05, - 0x4d, 0xcf, 0xc7, 0x33, 0x28, 0xc9, 0x97, 0x55, 0x0f, 0xc7, 0x7f, 0xfa, 0xa4, 0xd8, 0x8a, 0x63, - 0x3e, 0x86, 0x46, 0xcf, 0xe1, 0x4a, 0x81, 0xeb, 0x4c, 0xe6, 0x19, 0x90, 0xe5, 0xa0, 0xd6, 0x7d, - 0x0e, 0x65, 0xb9, 0x27, 0xfe, 0x29, 0x29, 0xbc, 0x5d, 0x58, 0x93, 0x3e, 0xfb, 0x15, 0x4a, 0x72, - 0x22, 0x48, 0x13, 0x1a, 0xd4, 0x1a, 0xd0, 0x9f, 0xba, 0xa7, 0x3d, 0x6b, 0xf8, 0x7d, 0xf7, 0xb2, - 0x77, 0x4b, 0xad, 0xfa, 0x46, 0x1c, 0xbe, 0xb6, 0xe8, 0x55, 0xb7, 0x6f, 0xf5, 0x07, 0x69, 0x38, - 0x47, 0x6a, 0xb0, 0x79, 0x6d, 0xf5, 0xcf, 0x2f, 0xfb, 0x17, 0xf5, 0x7c, 0xbc, 0xa0, 0xb7, 0xfd, - 0x7e, 0xbc, 0x28, 0x90, 0x6d, 0xa8, 0xde, 0xdc, 0x9e, 0x9d, 0x59, 0xd6, 0xb9, 0x75, 0x5e, 0x2f, - 0x9e, 0x7e, 0xfb, 0xf3, 0x37, 0xb6, 0x23, 0x7e, 0x8b, 0x46, 0xed, 0xb1, 0x3f, 0xeb, 0x48, 0x2b, - 0x7e, 0x68, 0xab, 0x8f, 0x4e, 0xfa, 0x8a, 0xdb, 0xe8, 0x75, 0x82, 0xd1, 0x73, 0xdb, 0xef, 0x64, - 0xff, 0x7c, 0x8c, 0xca, 0xf2, 0x41, 0x3f, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x11, 0x18, - 0x7d, 0x95, 0x08, 0x00, 0x00, + // 1098 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x6f, 0x6f, 0xdb, 0xd4, + 0x17, 0x5e, 0xfe, 0x36, 0x39, 0xe9, 0xb6, 0xe4, 0xb6, 0xd9, 0xcf, 0x4d, 0xf7, 0x83, 0xca, 0x50, + 0x54, 0x31, 0xd5, 0x61, 0x2d, 0x8c, 0x0e, 0xc4, 0xa6, 0xb4, 0x35, 0x5d, 0xa5, 0x34, 0xaa, 0x6e, + 0x53, 0x34, 0x90, 0x20, 0x72, 0x92, 0x53, 0x63, 0xc5, 0xb1, 0x3d, 0xdf, 0xeb, 0x6a, 0x45, 0xbc, + 0x82, 0xaf, 0xc0, 0x0b, 0xbe, 0x0b, 0x5f, 0x0e, 0xf9, 0xde, 0x6b, 0x27, 0x0e, 0xd9, 0xe8, 0xc4, + 0xde, 0xf9, 0xfc, 0x7b, 0xce, 0x73, 0x9f, 0x73, 0xec, 0x6b, 0x68, 0x5d, 0xb9, 0x37, 0x1c, 0x9d, + 0xb1, 0xdb, 0xb6, 0xc6, 0x53, 0xc7, 0x6b, 0x5b, 0x36, 0x7a, 0xdc, 0x08, 0x42, 0x9f, 0xfb, 0xe4, + 0x5e, 0x12, 0x33, 0x44, 0xac, 0xf5, 0x30, 0xcd, 0x1d, 0xf9, 0x21, 0xb6, 0x5d, 0x87, 0x63, 0x68, + 0xb9, 0x4c, 0x66, 0xb7, 0x36, 0xb2, 0x51, 0x6e, 0xb1, 0x49, 0x12, 0xfa, 0x20, 0x1b, 0x72, 0xc6, + 0xe8, 0x71, 0xe7, 0xca, 0xc1, 0x50, 0xc5, 0xff, 0x9f, 0x8d, 0xe3, 0x6b, 0x1c, 0x45, 0xdc, 0xf1, + 0x3d, 0x15, 0xde, 0xcc, 0x86, 0xa7, 0xc8, 0x43, 0x67, 0x94, 0x62, 0xdb, 0xbe, 0x6f, 0xbb, 0xd8, + 0x16, 0xd6, 0x30, 0xba, 0x6a, 0x8f, 0xa3, 0xd0, 0x9a, 0x2b, 0xfe, 0x70, 0x31, 0xce, 0x9d, 0x29, + 0x32, 0x6e, 0x4d, 0x03, 0x99, 0xa0, 0xff, 0x59, 0x82, 0x66, 0xdf, 0x62, 0x13, 0x33, 0xe9, 0x7a, + 0x86, 0xdc, 0x1a, 0x5b, 0xdc, 0x22, 0x14, 0x1a, 0xf1, 0x29, 0x06, 0x29, 0x9f, 0x81, 0x33, 0xd6, + 0x72, 0x5b, 0xb9, 0x9d, 0xda, 0xde, 0x27, 0x46, 0xaa, 0x4d, 0xcc, 0xc9, 0xc8, 0x00, 0x9c, 0xa6, + 0xe7, 0xa3, 0xf7, 0x79, 0x36, 0x40, 0x1e, 0x42, 0xd5, 0xb3, 0xa6, 0xc8, 0x02, 0x6b, 0x84, 0x5a, + 0x7e, 0x2b, 0xb7, 0x53, 0xa5, 0x33, 0x07, 0x39, 0x85, 0xb2, 0x6b, 0x0d, 0xd1, 0x65, 0x5a, 0x61, + 0xab, 0xb0, 0x53, 0xdb, 0x7b, 0x6c, 0x64, 0x47, 0x60, 0x2c, 0x25, 0x6a, 0x74, 0x45, 0x8d, 0xe9, + 0xf1, 0xf0, 0x86, 0x2a, 0x00, 0xf2, 0x12, 0x6a, 0x96, 0xe7, 0xf9, 0x5c, 0x68, 0xc1, 0xb4, 0xa2, + 0xc0, 0x7b, 0x72, 0x3b, 0xbc, 0xce, 0xac, 0x50, 0x82, 0xce, 0x43, 0x11, 0x03, 0xd6, 0x26, 0x07, + 0x6c, 0xc0, 0x30, 0xbc, 0x76, 0x46, 0x38, 0xb0, 0x46, 0x23, 0x3f, 0xf2, 0xb8, 0x56, 0x12, 0x87, + 0x69, 0x4c, 0x0e, 0xd8, 0x85, 0x8c, 0x74, 0x64, 0x80, 0x70, 0x68, 0xa2, 0x77, 0xed, 0x84, 0xbe, + 0x37, 0x45, 0x8f, 0x0f, 0xae, 0xad, 0xd0, 0xb1, 0x86, 0x2e, 0x32, 0xad, 0x2c, 0x38, 0x3d, 0xbf, + 0x1d, 0x27, 0x73, 0x06, 0xf1, 0x5d, 0x82, 0x20, 0xc9, 0xad, 0xe3, 0x92, 0x50, 0xeb, 0x29, 0xd4, + 0xe6, 0x64, 0x21, 0x75, 0x28, 0x4c, 0xf0, 0x46, 0x4c, 0xaf, 0x4a, 0xe3, 0x47, 0xb2, 0x0e, 0xa5, + 0x6b, 0xcb, 0x8d, 0x92, 0x29, 0x48, 0xe3, 0xab, 0xfc, 0x41, 0xae, 0xf5, 0x0c, 0xea, 0x8b, 0x0a, + 0xbc, 0x53, 0xfd, 0x09, 0x6c, 0xbc, 0x91, 0xed, 0xbb, 0x00, 0xe9, 0xbf, 0xe7, 0xa1, 0x71, 0x14, + 0xa2, 0xc5, 0x31, 0xd6, 0x84, 0xe2, 0xab, 0x08, 0x19, 0x27, 0x8f, 0xa1, 0xec, 0x78, 0x41, 0xc4, + 0x99, 0xda, 0xc5, 0x8d, 0x85, 0x5d, 0xec, 0xca, 0xf7, 0xf2, 0xcc, 0x0a, 0xa8, 0x4a, 0x24, 0x5f, + 0x42, 0x85, 0xe3, 0x34, 0x70, 0x2d, 0x2e, 0xbb, 0xd4, 0xf6, 0x36, 0x97, 0x2c, 0x70, 0x5f, 0xa5, + 0xd0, 0x34, 0x99, 0x7c, 0x04, 0x77, 0xfd, 0x88, 0x07, 0x11, 0x1f, 0x04, 0x21, 0x5e, 0x39, 0xaf, + 0xb5, 0x82, 0xe0, 0xb8, 0x2a, 0x9d, 0xe7, 0xc2, 0x47, 0x7e, 0x84, 0xff, 0x2d, 0xbc, 0x27, 0x53, + 0x35, 0x35, 0xad, 0x28, 0x9a, 0x6d, 0xdf, 0x6a, 0xc4, 0xb4, 0xc9, 0x97, 0xb9, 0xf5, 0x5f, 0x80, + 0xcc, 0x8b, 0xc0, 0x02, 0xdf, 0x63, 0x48, 0xb6, 0xe1, 0x6e, 0x88, 0xcc, 0x8f, 0xc2, 0x11, 0x8a, + 0x76, 0x42, 0x8c, 0xd5, 0x17, 0x77, 0xe8, 0x6a, 0xe2, 0x8e, 0x01, 0xc8, 0x13, 0xa8, 0x24, 0xb6, + 0x3a, 0xb9, 0xb6, 0x48, 0x86, 0xaa, 0xf8, 0x8b, 0x3b, 0x34, 0xcd, 0x3d, 0x2c, 0x41, 0x21, 0x44, + 0xa6, 0x53, 0xb8, 0x77, 0x82, 0x7c, 0x5e, 0xfd, 0x4d, 0xa8, 0x8a, 0xc3, 0xf2, 0x9b, 0x00, 0xd5, + 0x14, 0x2b, 0xb1, 0xa3, 0x7f, 0x13, 0x08, 0xb9, 0xb2, 0xa4, 0xe2, 0x96, 0xab, 0x59, 0x4a, 0xfa, + 0xaf, 0x70, 0x3f, 0xc5, 0x54, 0x87, 0xf9, 0x7c, 0x8e, 0x65, 0xee, 0xed, 0x2c, 0x67, 0x1c, 0xc9, + 0x3e, 0x54, 0x5d, 0xdf, 0x1e, 0xb8, 0x8e, 0x37, 0x61, 0x5a, 0x5e, 0xbc, 0x4c, 0x0f, 0x96, 0x8c, + 0xb5, 0xeb, 0xdb, 0xb4, 0xe2, 0xfa, 0x76, 0x37, 0xce, 0xd3, 0xff, 0xca, 0x41, 0x25, 0xc1, 0x22, + 0x8f, 0xa0, 0xc4, 0x78, 0xbc, 0x14, 0x71, 0xd3, 0x7b, 0x7b, 0xcd, 0xc5, 0xa6, 0x17, 0x71, 0x90, + 0xca, 0x1c, 0xb2, 0x0f, 0x2b, 0x72, 0xec, 0x4c, 0x29, 0xf9, 0x96, 0xc5, 0x4b, 0x32, 0x89, 0x06, + 0x2b, 0x53, 0x64, 0xcc, 0xb2, 0x51, 0xad, 0x4e, 0x62, 0x66, 0xd9, 0x17, 0x6f, 0xc9, 0xfe, 0x12, + 0x1a, 0xc7, 0xe8, 0x62, 0xf6, 0x85, 0xf8, 0xef, 0x23, 0x59, 0x07, 0x32, 0x0f, 0x2b, 0xa7, 0xa2, + 0x9f, 0x41, 0xa9, 0x13, 0x5f, 0x87, 0x84, 0x40, 0x31, 0xfe, 0x46, 0x2b, 0x6c, 0xf1, 0x4c, 0x3e, + 0x83, 0x75, 0x16, 0x05, 0x81, 0x1f, 0x72, 0x1c, 0x0f, 0xd2, 0xf6, 0x72, 0x0e, 0x55, 0x4a, 0xd2, + 0x58, 0x5f, 0x11, 0x61, 0xfa, 0xb6, 0x98, 0xbb, 0x40, 0x4c, 0x98, 0x2f, 0x01, 0xd6, 0x9f, 0x43, + 0x7d, 0x96, 0xa6, 0xf6, 0xe3, 0x11, 0x94, 0xc4, 0xc5, 0xac, 0x96, 0xe3, 0x1f, 0x73, 0x92, 0xd9, + 0x32, 0x47, 0x5f, 0x83, 0x46, 0xd7, 0x61, 0x12, 0x81, 0xa9, 0x4e, 0xfa, 0x11, 0x90, 0x79, 0xa7, + 0xc2, 0xdd, 0x85, 0xb2, 0xa8, 0x89, 0x3f, 0x25, 0x85, 0x37, 0x03, 0xab, 0x24, 0xfd, 0x8f, 0x3c, + 0x34, 0xd5, 0xea, 0x9e, 0xc9, 0x4b, 0xf8, 0xbd, 0x8d, 0x20, 0x5e, 0x94, 0x57, 0x11, 0x86, 0x0e, + 0xca, 0xbb, 0xaf, 0x4a, 0x13, 0x93, 0x3c, 0x05, 0x60, 0xdc, 0x0a, 0xf9, 0x20, 0xbe, 0xb9, 0xd5, + 0x17, 0xa5, 0x65, 0xc8, 0x6b, 0xdd, 0x48, 0xae, 0x75, 0xa3, 0x9f, 0x5c, 0xeb, 0xb4, 0x2a, 0xb2, + 0x63, 0x9b, 0x7c, 0x01, 0x15, 0xf4, 0xc6, 0xb2, 0xb0, 0xf4, 0xaf, 0x85, 0x2b, 0xe8, 0x8d, 0x45, + 0xd9, 0x2e, 0x14, 0x19, 0xc7, 0x40, 0x2b, 0xab, 0x35, 0x5f, 0x2c, 0x39, 0x56, 0xbf, 0x18, 0x54, + 0xa4, 0xe9, 0x2f, 0xe1, 0xc1, 0xa2, 0x2a, 0x4a, 0xdf, 0x67, 0xb0, 0x12, 0x22, 0x8b, 0xdc, 0x54, + 0xe0, 0x8f, 0x17, 0x36, 0x7c, 0xfe, 0x6b, 0x17, 0x3a, 0x23, 0x2a, 0x92, 0x69, 0x52, 0xa4, 0xff, + 0x96, 0x03, 0xa2, 0xa0, 0xbb, 0xbe, 0xfd, 0x1e, 0xd5, 0x5e, 0x87, 0x92, 0xeb, 0x78, 0x42, 0xeb, + 0xdc, 0x4e, 0x91, 0x4a, 0x23, 0xf6, 0x72, 0x7f, 0x82, 0x9e, 0x10, 0xb9, 0x4a, 0xa5, 0xa1, 0x9b, + 0xb0, 0x96, 0xe1, 0xa0, 0xce, 0xa6, 0x65, 0xcf, 0x56, 0x4d, 0x59, 0xcf, 0x60, 0xf2, 0x73, 0x30, + 0x9f, 0xfe, 0x04, 0x25, 0xf1, 0x39, 0x21, 0x4d, 0x68, 0x50, 0xb3, 0x4f, 0xbf, 0xef, 0x1c, 0x76, + 0xcd, 0xc1, 0xb7, 0x9d, 0xd3, 0xee, 0x25, 0x35, 0xeb, 0x77, 0x62, 0xf7, 0xb9, 0x49, 0xcf, 0x3a, + 0x3d, 0xb3, 0xd7, 0x4f, 0xdd, 0x39, 0x52, 0x83, 0x95, 0x73, 0xb3, 0x77, 0x7c, 0xda, 0x3b, 0xa9, + 0xe7, 0x63, 0x83, 0x5e, 0xf6, 0x7a, 0xb1, 0x51, 0x20, 0x77, 0xa1, 0x7a, 0x71, 0x79, 0x74, 0x64, + 0x9a, 0xc7, 0xe6, 0x71, 0xbd, 0x78, 0xf8, 0xcd, 0x0f, 0x5f, 0xdb, 0x0e, 0xff, 0x39, 0x1a, 0x1a, + 0x23, 0x7f, 0xda, 0x16, 0x32, 0xfb, 0xa1, 0x2d, 0x1f, 0xda, 0xe9, 0x1f, 0xa4, 0x8d, 0x5e, 0x3b, + 0x18, 0xee, 0xda, 0x7e, 0x3b, 0xfb, 0xe3, 0x3b, 0x2c, 0x8b, 0xe9, 0xee, 0xff, 0x1d, 0x00, 0x00, + 0xff, 0xff, 0xaf, 0x08, 0xa3, 0x3f, 0x11, 0x0b, 0x00, 0x00, } diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go index 447a918a48..e9688ace88 100644 --- a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go @@ -6,6 +6,7 @@ package core import ( fmt "fmt" proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) @@ -161,34 +162,92 @@ func (*Span) XXX_OneofWrappers() []interface{} { } } +// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. +type ExecutionMetricResult struct { + // The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. + Metric string `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` + // The result data in prometheus range query result format + // https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats. + // This may include multiple time series, differentiated by their metric labels. + // Start time is greater of (execution attempt start, 48h ago) + // End time is lesser of (execution attempt end, now) + Data *_struct.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionMetricResult) Reset() { *m = ExecutionMetricResult{} } +func (m *ExecutionMetricResult) String() string { return proto.CompactTextString(m) } +func (*ExecutionMetricResult) ProtoMessage() {} +func (*ExecutionMetricResult) Descriptor() ([]byte, []int) { + return fileDescriptor_756935f796ae3119, []int{1} +} + +func (m *ExecutionMetricResult) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionMetricResult.Unmarshal(m, b) +} +func (m *ExecutionMetricResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionMetricResult.Marshal(b, m, deterministic) +} +func (m *ExecutionMetricResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionMetricResult.Merge(m, src) +} +func (m *ExecutionMetricResult) XXX_Size() int { + return xxx_messageInfo_ExecutionMetricResult.Size(m) +} +func (m *ExecutionMetricResult) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionMetricResult.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionMetricResult proto.InternalMessageInfo + +func (m *ExecutionMetricResult) GetMetric() string { + if m != nil { + return m.Metric + } + return "" +} + +func (m *ExecutionMetricResult) GetData() *_struct.Struct { + if m != nil { + return m.Data + } + return nil +} + func init() { proto.RegisterType((*Span)(nil), "flyteidl.core.Span") + proto.RegisterType((*ExecutionMetricResult)(nil), "flyteidl.core.ExecutionMetricResult") } func init() { proto.RegisterFile("flyteidl/core/metrics.proto", fileDescriptor_756935f796ae3119) } var fileDescriptor_756935f796ae3119 = []byte{ - // 341 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xdf, 0x4b, 0xeb, 0x30, - 0x14, 0x80, 0xf7, 0x7b, 0x77, 0xe9, 0xbd, 0x2f, 0xbd, 0x2f, 0x63, 0x17, 0xae, 0x43, 0x41, 0xa6, - 0x60, 0x02, 0x13, 0x1f, 0x14, 0x5f, 0x1c, 0x08, 0xeb, 0x83, 0x3e, 0xd4, 0x81, 0xe0, 0xcb, 0x68, - 0x9b, 0xd3, 0x1a, 0xd6, 0xe6, 0x94, 0x34, 0x63, 0xfa, 0xf7, 0xf8, 0x8f, 0x4a, 0x12, 0x3b, 0xd8, - 0x98, 0xf8, 0xd6, 0x34, 0xdf, 0xf7, 0x85, 0x90, 0x43, 0xfe, 0xa5, 0xf9, 0xbb, 0x06, 0xc1, 0x73, - 0x96, 0xa0, 0x02, 0x56, 0x80, 0x56, 0x22, 0xa9, 0x68, 0xa9, 0x50, 0xa3, 0xff, 0xa7, 0xde, 0xa4, - 0x66, 0x73, 0xf4, 0x7f, 0x97, 0x15, 0x1c, 0xa4, 0x16, 0xa9, 0x00, 0xe5, 0xf0, 0xd1, 0x51, 0x86, - 0x98, 0xe5, 0xc0, 0xec, 0x2a, 0x5e, 0xa7, 0x4c, 0x8b, 0x02, 0x2a, 0x1d, 0x15, 0xa5, 0x03, 0x8e, - 0x3f, 0xda, 0xa4, 0xf3, 0x54, 0x46, 0xd2, 0xbf, 0x26, 0xa4, 0xd2, 0x91, 0xd2, 0x4b, 0x43, 0x0c, - 0x9b, 0xe3, 0xe6, 0xc4, 0x9b, 0x8e, 0xa8, 0xd3, 0x69, 0xad, 0xd3, 0x45, 0xad, 0x87, 0x03, 0x4b, - 0x9b, 0xb5, 0x7f, 0x45, 0x7e, 0x81, 0xe4, 0x4e, 0x6c, 0xfd, 0x28, 0xf6, 0x41, 0x72, 0xab, 0x3d, - 0x10, 0x6f, 0x83, 0x6a, 0x95, 0xe6, 0xb8, 0x59, 0x0a, 0x3e, 0x6c, 0x5b, 0xf3, 0x9c, 0xee, 0x5c, - 0x90, 0x3e, 0x7f, 0x11, 0xf7, 0x6f, 0x90, 0xac, 0xb5, 0x40, 0x19, 0x6c, 0xaf, 0x38, 0x6f, 0x84, - 0xa4, 0x0e, 0x04, 0xdc, 0xbf, 0x23, 0x7d, 0x89, 0x1c, 0x4c, 0xaa, 0x63, 0x53, 0xa7, 0x7b, 0xa9, - 0x47, 0xe4, 0x70, 0x38, 0xd3, 0x33, 0xa2, 0x4b, 0xe8, 0xa8, 0x5a, 0x99, 0x44, 0xf7, 0x60, 0x62, - 0x11, 0x55, 0xab, 0x6f, 0x12, 0x46, 0x0c, 0xb8, 0x7f, 0x42, 0x7e, 0x63, 0x09, 0x2a, 0x32, 0x80, - 0xe9, 0xf4, 0xc6, 0xcd, 0xc9, 0x60, 0xde, 0x08, 0xbd, 0xed, 0xdf, 0x80, 0xfb, 0x67, 0xa4, 0x5b, - 0x95, 0x91, 0xac, 0x86, 0xfd, 0x71, 0x7b, 0xe2, 0x4d, 0xff, 0xee, 0x9d, 0x62, 0xde, 0x23, 0x74, - 0xc4, 0xac, 0x43, 0x5a, 0x82, 0xcf, 0x6e, 0x5f, 0x6e, 0x32, 0xa1, 0x5f, 0xd7, 0x31, 0x4d, 0xb0, - 0x60, 0x96, 0x46, 0x95, 0xb9, 0x0f, 0xb6, 0x1d, 0x81, 0x0c, 0x24, 0x2b, 0xe3, 0x8b, 0x0c, 0xd9, - 0xce, 0x54, 0xc4, 0x3d, 0xfb, 0x0a, 0x97, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xa7, 0xb8, - 0x33, 0x59, 0x02, 0x00, 0x00, + // 393 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x51, 0xcb, 0xd3, 0x30, + 0x14, 0x86, 0xbf, 0x7d, 0xeb, 0x3a, 0x97, 0xea, 0x4d, 0x44, 0x1d, 0x53, 0x74, 0x4c, 0x90, 0xa9, + 0x98, 0xc0, 0xc4, 0x0b, 0xc5, 0x1b, 0x07, 0xc2, 0x7a, 0x31, 0x2f, 0xba, 0x81, 0x20, 0xc2, 0x48, + 0x9b, 0xb4, 0x86, 0xb5, 0x49, 0x49, 0x52, 0xa6, 0xbf, 0xc7, 0x3f, 0x2a, 0x49, 0xda, 0xc2, 0xe6, + 0xc4, 0xbb, 0x9e, 0x9e, 0xf7, 0x79, 0xd2, 0xe6, 0x1c, 0xf0, 0x38, 0x2f, 0x7f, 0x19, 0xc6, 0x69, + 0x89, 0x33, 0xa9, 0x18, 0xae, 0x98, 0x51, 0x3c, 0xd3, 0xa8, 0x56, 0xd2, 0x48, 0x78, 0xaf, 0x6b, + 0x22, 0xdb, 0x9c, 0x3d, 0x3d, 0xcf, 0x72, 0xca, 0x84, 0xe1, 0x39, 0x67, 0xca, 0xc7, 0x67, 0xcf, + 0x0a, 0x29, 0x8b, 0x92, 0x61, 0x57, 0xa5, 0x4d, 0x8e, 0x0d, 0xaf, 0x98, 0x36, 0xa4, 0xaa, 0xdb, + 0xc0, 0x93, 0xcb, 0x80, 0x36, 0xaa, 0xc9, 0x8c, 0xef, 0x2e, 0x7e, 0x0f, 0x41, 0xb0, 0xab, 0x89, + 0x80, 0xef, 0x01, 0xd0, 0x86, 0x28, 0x73, 0xb0, 0xfc, 0x74, 0x30, 0x1f, 0x2c, 0xa3, 0xd5, 0x0c, + 0x79, 0x16, 0x75, 0x2c, 0xda, 0x77, 0xf2, 0x64, 0xe2, 0xd2, 0xb6, 0x86, 0xef, 0xc0, 0x1d, 0x26, + 0xa8, 0x07, 0x6f, 0xff, 0x0b, 0x8e, 0x99, 0xa0, 0x0e, 0xdb, 0x82, 0xe8, 0x24, 0xd5, 0x31, 0x2f, + 0xe5, 0xe9, 0xc0, 0xe9, 0x74, 0xe8, 0xc8, 0x57, 0xe8, 0xec, 0xf7, 0xd1, 0xd7, 0x36, 0xf1, 0xf9, + 0x27, 0xcb, 0x1a, 0xc3, 0xa5, 0x88, 0xfb, 0x0b, 0xd8, 0xdc, 0x24, 0xa0, 0x13, 0xc4, 0x14, 0x7e, + 0x02, 0x63, 0x21, 0x29, 0xb3, 0xaa, 0xc0, 0xa9, 0x5e, 0x5c, 0xa8, 0xbe, 0x48, 0xca, 0xae, 0x6b, + 0x42, 0x0b, 0x7a, 0x85, 0x21, 0xfa, 0x68, 0x15, 0xa3, 0xab, 0x8a, 0x3d, 0xd1, 0xc7, 0x7f, 0x28, + 0x2c, 0x18, 0x53, 0xf8, 0x1c, 0xdc, 0x95, 0x35, 0x53, 0xc4, 0x06, 0xac, 0x27, 0x9c, 0x0f, 0x96, + 0x93, 0xcd, 0x4d, 0x12, 0xf5, 0x6f, 0x63, 0x0a, 0x5f, 0x82, 0x91, 0xae, 0x89, 0xd0, 0xd3, 0xf1, + 0x7c, 0xb8, 0x8c, 0x56, 0xf7, 0x2f, 0x4e, 0xb1, 0xf3, 0x48, 0x7c, 0x62, 0x1d, 0x80, 0x5b, 0x4e, + 0x17, 0xdf, 0xc1, 0x83, 0xfe, 0xd8, 0xad, 0xdb, 0x96, 0x84, 0xe9, 0xa6, 0x34, 0xf0, 0x21, 0x08, + 0xfd, 0xf6, 0xb8, 0x89, 0x4d, 0x92, 0xb6, 0x82, 0xaf, 0x41, 0x40, 0x89, 0x21, 0xed, 0x38, 0x1e, + 0xfd, 0x35, 0x8e, 0x9d, 0xdb, 0x81, 0xc4, 0x85, 0xd6, 0x1f, 0xbf, 0x7d, 0x28, 0xb8, 0xf9, 0xd1, + 0xa4, 0x28, 0x93, 0x15, 0x76, 0xdf, 0x22, 0x55, 0xe1, 0x1f, 0x70, 0xbf, 0x7e, 0x05, 0x13, 0xb8, + 0x4e, 0xdf, 0x14, 0x12, 0x9f, 0x6d, 0x64, 0x1a, 0x3a, 0xe9, 0xdb, 0x3f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0xd7, 0xa7, 0xf1, 0xb0, 0xd5, 0x02, 0x00, 0x00, } diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go index c816a1f3ac..478c62819c 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -29,28 +29,30 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("flyteidl/service/agent.proto", fileDescriptor_f7d1dfd1fb77d2ef) } var fileDescriptor_f7d1dfd1fb77d2ef = []byte{ - // 324 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xbd, 0x4e, 0xf3, 0x30, - 0x14, 0x86, 0xbf, 0xaf, 0x03, 0x20, 0x0f, 0xa8, 0x58, 0x55, 0x87, 0xa8, 0xe2, 0xa7, 0x3b, 0xb1, - 0x28, 0x33, 0x42, 0x05, 0xa4, 0x2e, 0x65, 0x01, 0xba, 0xb0, 0x9d, 0x26, 0x07, 0x63, 0x25, 0xb1, - 0x43, 0x7c, 0x5a, 0xa9, 0x42, 0x2c, 0xdc, 0x00, 0x03, 0x97, 0xc6, 0x2d, 0x70, 0x01, 0x5c, 0x02, - 0xc2, 0xf9, 0xa5, 0x10, 0xb6, 0x28, 0xcf, 0xeb, 0xe7, 0xf5, 0xcf, 0x61, 0x83, 0xbb, 0x78, 0x45, - 0xa8, 0xc2, 0x58, 0x58, 0xcc, 0x96, 0x2a, 0x40, 0x01, 0x12, 0x35, 0xf9, 0x69, 0x66, 0xc8, 0xf0, - 0x6e, 0x49, 0xfd, 0x82, 0x7a, 0x03, 0x69, 0x8c, 0x8c, 0x51, 0x40, 0xaa, 0x04, 0x68, 0x6d, 0x08, - 0x48, 0x19, 0x6d, 0xf3, 0xbc, 0xe7, 0x55, 0x36, 0x08, 0x13, 0xa5, 0x9b, 0xae, 0xd1, 0x4b, 0x87, - 0xed, 0x8c, 0xed, 0x4a, 0x07, 0xe3, 0xaf, 0x9f, 0xd7, 0xb9, 0x8f, 0xcf, 0x18, 0x3b, 0xcf, 0x10, - 0x08, 0x6f, 0xc0, 0x46, 0xfc, 0xc0, 0xaf, 0x0a, 0x9d, 0xc0, 0xaf, 0xd9, 0x15, 0x3e, 0x2c, 0xd0, - 0x92, 0x37, 0xfc, 0x2b, 0x62, 0x53, 0xa3, 0x2d, 0x0e, 0xff, 0xf1, 0x29, 0xdb, 0x9c, 0x20, 0x39, - 0xe7, 0xee, 0xfa, 0x82, 0x02, 0x94, 0xc2, 0xbd, 0x56, 0x5e, 0xd9, 0x66, 0x8c, 0x5d, 0x60, 0x8c, - 0x6d, 0x9b, 0xac, 0x59, 0xeb, 0x26, 0x9b, 0x91, 0x52, 0x3b, 0xfa, 0xf8, 0xcf, 0x7a, 0xee, 0x32, - 0x2e, 0x91, 0x20, 0x04, 0x82, 0xf2, 0x52, 0x22, 0xb6, 0x35, 0x41, 0x72, 0x88, 0xff, 0xb6, 0x3d, - 0x47, 0xca, 0xae, 0xfd, 0xf6, 0x40, 0xd1, 0x34, 0x78, 0x7e, 0x7b, 0x7f, 0xed, 0xf4, 0x79, 0xcf, - 0xbd, 0xda, 0xf2, 0x28, 0x7f, 0x16, 0xf1, 0xa8, 0x21, 0xc1, 0x27, 0x1e, 0x31, 0x36, 0x55, 0x36, - 0x5f, 0x62, 0x7f, 0x1e, 0xae, 0x66, 0xad, 0x87, 0x6b, 0x46, 0x8a, 0xca, 0xbe, 0xab, 0xec, 0xf2, - 0xed, 0x6f, 0x95, 0xf6, 0xec, 0xf4, 0xf6, 0x44, 0x2a, 0xba, 0x5f, 0xcc, 0xfd, 0xc0, 0x24, 0xc2, - 0x79, 0x4c, 0x26, 0xf3, 0x0f, 0x51, 0x0d, 0x8f, 0x44, 0x2d, 0xd2, 0xf9, 0xa1, 0x34, 0x62, 0x7d, - 0x3a, 0xe7, 0x1b, 0x6e, 0x98, 0x8e, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x2d, 0xd1, 0xd9, - 0xb8, 0x02, 0x00, 0x00, + // 367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcd, 0x4a, 0x33, 0x31, + 0x14, 0x86, 0xbf, 0x4f, 0x41, 0x25, 0x42, 0xa9, 0xa1, 0x74, 0x31, 0x14, 0x7f, 0x2a, 0xba, 0x73, + 0x82, 0x75, 0x2d, 0x52, 0x15, 0xba, 0x69, 0x37, 0x6a, 0x41, 0xdc, 0xa5, 0xd3, 0x63, 0x0c, 0x9d, + 0x26, 0xe3, 0xe4, 0xb4, 0x50, 0xc4, 0x8d, 0xb7, 0xe0, 0x6d, 0xb9, 0xf3, 0x16, 0xbc, 0x00, 0x2f, + 0x41, 0x9a, 0x99, 0x4c, 0x6b, 0x35, 0x75, 0x57, 0xfa, 0xbc, 0x79, 0xde, 0x30, 0xe7, 0x84, 0xd4, + 0xee, 0xe3, 0x09, 0x82, 0xec, 0xc7, 0xcc, 0x40, 0x3a, 0x96, 0x11, 0x30, 0x2e, 0x40, 0x61, 0x98, + 0xa4, 0x1a, 0x35, 0x2d, 0x3b, 0x1a, 0xe6, 0x34, 0xa8, 0x09, 0xad, 0x45, 0x0c, 0x8c, 0x27, 0x92, + 0x71, 0xa5, 0x34, 0x72, 0x94, 0x5a, 0x99, 0x2c, 0x1f, 0x04, 0x85, 0x8d, 0xf7, 0x87, 0x52, 0xcd, + 0xbb, 0x1a, 0x6f, 0xab, 0x64, 0xab, 0x69, 0x26, 0x2a, 0x6a, 0x4e, 0xff, 0xbc, 0xce, 0x7c, 0xb4, + 0x4b, 0xc8, 0x45, 0x0a, 0x1c, 0xe1, 0x86, 0x9b, 0x01, 0xdd, 0x0b, 0x8b, 0x42, 0x2b, 0x08, 0x67, + 0xec, 0x0a, 0x1e, 0x47, 0x60, 0x30, 0xa8, 0x2f, 0x8b, 0x98, 0x44, 0x2b, 0x03, 0xf5, 0x7f, 0xb4, + 0x4d, 0xd6, 0x5b, 0x80, 0xd6, 0xb9, 0xbd, 0x78, 0x20, 0x07, 0x4e, 0xb8, 0xe3, 0xe5, 0x85, 0xad, + 0x4b, 0xc8, 0x25, 0xc4, 0xe0, 0xbb, 0xe4, 0x8c, 0x79, 0x2f, 0x39, 0x1f, 0x29, 0xb4, 0x9c, 0x94, + 0xf2, 0xae, 0x0e, 0x60, 0x2a, 0x23, 0x43, 0x0f, 0x3c, 0x77, 0xc9, 0xb9, 0xd3, 0x1f, 0xfe, 0x15, + 0x2b, 0x2a, 0x6e, 0xc9, 0x66, 0xce, 0xda, 0x5a, 0x18, 0x5a, 0xf7, 0x1c, 0x9c, 0x42, 0x27, 0xdf, + 0x5f, 0x9a, 0x71, 0xe6, 0xc6, 0xe7, 0x7f, 0x52, 0xb1, 0x93, 0xec, 0x00, 0xf2, 0x3e, 0x47, 0xee, + 0x26, 0x3a, 0x20, 0x1b, 0x2d, 0x40, 0x8b, 0xe8, 0x6f, 0xdf, 0xd6, 0x12, 0x57, 0xb6, 0xeb, 0x0f, + 0xe4, 0x4d, 0xb5, 0x97, 0xf7, 0x8f, 0xd7, 0x95, 0x2a, 0xad, 0xd8, 0x95, 0x1b, 0x1f, 0x67, 0x3b, + 0xc5, 0x9e, 0x14, 0x1f, 0xc2, 0x33, 0x1d, 0x10, 0xd2, 0x96, 0x26, 0x3b, 0x62, 0x7e, 0x4e, 0x66, + 0xc6, 0xbc, 0x93, 0x99, 0x8f, 0xe4, 0x95, 0x55, 0x5b, 0x59, 0xa6, 0xa5, 0x6f, 0x95, 0xe6, 0xfc, + 0xec, 0xee, 0x54, 0x48, 0x7c, 0x18, 0xf5, 0xc2, 0x48, 0x0f, 0x99, 0xf5, 0xe8, 0x54, 0x64, 0x3f, + 0x58, 0xb1, 0xf9, 0x02, 0x14, 0x4b, 0x7a, 0x47, 0x42, 0xb3, 0xc5, 0xa7, 0xd5, 0x5b, 0xb3, 0x2f, + 0xe1, 0xe4, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x64, 0x33, 0x1f, 0x2d, 0x75, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -71,6 +73,14 @@ type AsyncAgentServiceClient interface { GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) // Delete the task resource. DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // * OutOfRange if metrics are not available for the specified task time range + // * various other errors + GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) + // GetTaskLogs returns task execution logs, if available. + GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) } type asyncAgentServiceClient struct { @@ -108,6 +118,24 @@ func (c *asyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.Dele return out, nil } +func (c *asyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { + out := new(admin.GetTaskMetricsResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *asyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { + out := new(admin.GetTaskLogsResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/GetTaskLogs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // AsyncAgentServiceServer is the server API for AsyncAgentService service. type AsyncAgentServiceServer interface { // Send a task create request to the agent server. @@ -116,6 +144,14 @@ type AsyncAgentServiceServer interface { GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) // Delete the task resource. DeleteTask(context.Context, *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // * OutOfRange if metrics are not available for the specified task time range + // * various other errors + GetTaskMetrics(context.Context, *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) + // GetTaskLogs returns task execution logs, if available. + GetTaskLogs(context.Context, *admin.GetTaskLogsRequest) (*admin.GetTaskLogsResponse, error) } // UnimplementedAsyncAgentServiceServer can be embedded to have forward compatible implementations. @@ -131,6 +167,12 @@ func (*UnimplementedAsyncAgentServiceServer) GetTask(ctx context.Context, req *a func (*UnimplementedAsyncAgentServiceServer) DeleteTask(ctx context.Context, req *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") } +func (*UnimplementedAsyncAgentServiceServer) GetTaskMetrics(ctx context.Context, req *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTaskMetrics not implemented") +} +func (*UnimplementedAsyncAgentServiceServer) GetTaskLogs(ctx context.Context, req *admin.GetTaskLogsRequest) (*admin.GetTaskLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTaskLogs not implemented") +} func RegisterAsyncAgentServiceServer(s *grpc.Server, srv AsyncAgentServiceServer) { s.RegisterService(&_AsyncAgentService_serviceDesc, srv) @@ -190,6 +232,42 @@ func _AsyncAgentService_DeleteTask_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _AsyncAgentService_GetTaskMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetTaskMetricsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).GetTaskMetrics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AsyncAgentService/GetTaskMetrics", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).GetTaskMetrics(ctx, req.(*admin.GetTaskMetricsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AsyncAgentService_GetTaskLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetTaskLogsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).GetTaskLogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AsyncAgentService/GetTaskLogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).GetTaskLogs(ctx, req.(*admin.GetTaskLogsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _AsyncAgentService_serviceDesc = grpc.ServiceDesc{ ServiceName: "flyteidl.service.AsyncAgentService", HandlerType: (*AsyncAgentServiceServer)(nil), @@ -206,6 +284,14 @@ var _AsyncAgentService_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteTask", Handler: _AsyncAgentService_DeleteTask_Handler, }, + { + MethodName: "GetTaskMetrics", + Handler: _AsyncAgentService_GetTaskMetrics_Handler, + }, + { + MethodName: "GetTaskLogs", + Handler: _AsyncAgentService_GetTaskLogs_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "flyteidl/service/agent.proto", diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json index b7eacff5f7..3311e69e38 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json @@ -259,6 +259,36 @@ }, "description": "A response containing an agent." }, + "adminGetTaskLogsResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The execution log results." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "description": "A response containing the logs for a task execution." + }, + "adminGetTaskMetricsResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/coreExecutionMetricResult" + }, + "description": "The execution metric results." + } + }, + "description": "A response containing a list of metrics for a task execution." + }, "adminGetTaskResponse": { "type": "object", "properties": { @@ -533,6 +563,20 @@ }, "description": "Represents an error thrown from a node." }, + "coreExecutionMetricResult": { + "type": "object", + "properties": { + "metric": { + "type": "string", + "description": "The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG." + }, + "data": { + "$ref": "#/definitions/protobufStruct", + "title": "The result data in prometheus range query result format\nhttps://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.\nThis may include multiple time series, differentiated by their metric labels.\nStart time is greater of (execution attempt start, 48h ago)\nEnd time is lesser of (execution attempt end, now)" + } + }, + "description": "ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task." + }, "coreExtendedResources": { "type": "object", "properties": { diff --git a/flyteidl/gen/pb-java/flyteidl/admin/AgentOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/AgentOuterClass.java index f71d1743ff..4bdcefaea6 100644 --- a/flyteidl/gen/pb-java/flyteidl/admin/AgentOuterClass.java +++ b/flyteidl/gen/pb-java/flyteidl/admin/AgentOuterClass.java @@ -12023,6 +12023,4435 @@ public flyteidl.admin.AgentOuterClass.ListAgentsResponse getDefaultInstanceForTy } + public interface GetTaskMetricsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskMetricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 2; + */ + com.google.protobuf.ByteString getResourceMeta(); + + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + java.util.List + getQueriesList(); + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + int getQueriesCount(); + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + java.lang.String getQueries(int index); + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + com.google.protobuf.ByteString + getQueriesBytes(int index); + + /** + *
+     * Start timestamp, inclusive.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + boolean hasStartTime(); + /** + *
+     * Start timestamp, inclusive.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+     * Start timestamp, inclusive.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+     * End timestamp, inclusive..
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + boolean hasEndTime(); + /** + *
+     * End timestamp, inclusive..
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+     * End timestamp, inclusive..
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + *
+     * Query resolution step width in duration format or float number of seconds.
+     * 
+ * + * .google.protobuf.Duration step = 6; + */ + boolean hasStep(); + /** + *
+     * Query resolution step width in duration format or float number of seconds.
+     * 
+ * + * .google.protobuf.Duration step = 6; + */ + com.google.protobuf.Duration getStep(); + /** + *
+     * Query resolution step width in duration format or float number of seconds.
+     * 
+ * + * .google.protobuf.Duration step = 6; + */ + com.google.protobuf.DurationOrBuilder getStepOrBuilder(); + } + /** + *
+   * A request to get the metrics from a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskMetricsRequest} + */ + public static final class GetTaskMetricsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskMetricsRequest) + GetTaskMetricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskMetricsRequest.newBuilder() to construct. + private GetTaskMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskMetricsRequest() { + taskType_ = ""; + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskMetricsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + + resourceMeta_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + queries_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + queries_.add(s); + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (step_ != null) { + subBuilder = step_.toBuilder(); + } + step_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(step_); + step_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + queries_ = queries_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest.class, flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest.Builder.class); + } + + private int bitField0_; + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_META_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + public static final int QUERIES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList queries_; + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + public com.google.protobuf.ProtocolStringList + getQueriesList() { + return queries_; + } + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + public int getQueriesCount() { + return queries_.size(); + } + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + public java.lang.String getQueries(int index) { + return queries_.get(index); + } + /** + *
+     * The metrics to query. If empty, will return a default set of metrics.
+     * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+     * 
+ * + * repeated string queries = 3; + */ + public com.google.protobuf.ByteString + getQueriesBytes(int index) { + return queries_.getByteString(index); + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + /** + *
+     * Start timestamp, inclusive.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+     * Start timestamp, inclusive.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+     * Start timestamp, inclusive.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp endTime_; + /** + *
+     * End timestamp, inclusive..
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+     * End timestamp, inclusive..
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+     * End timestamp, inclusive..
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int STEP_FIELD_NUMBER = 6; + private com.google.protobuf.Duration step_; + /** + *
+     * Query resolution step width in duration format or float number of seconds.
+     * 
+ * + * .google.protobuf.Duration step = 6; + */ + public boolean hasStep() { + return step_ != null; + } + /** + *
+     * Query resolution step width in duration format or float number of seconds.
+     * 
+ * + * .google.protobuf.Duration step = 6; + */ + public com.google.protobuf.Duration getStep() { + return step_ == null ? com.google.protobuf.Duration.getDefaultInstance() : step_; + } + /** + *
+     * Query resolution step width in duration format or float number of seconds.
+     * 
+ * + * .google.protobuf.Duration step = 6; + */ + public com.google.protobuf.DurationOrBuilder getStepOrBuilder() { + return getStep(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + output.writeBytes(2, resourceMeta_); + } + for (int i = 0; i < queries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queries_.getRaw(i)); + } + if (startTime_ != null) { + output.writeMessage(4, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(5, getEndTime()); + } + if (step_ != null) { + output.writeMessage(6, getStep()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, resourceMeta_); + } + { + int dataSize = 0; + for (int i = 0; i < queries_.size(); i++) { + dataSize += computeStringSizeNoTag(queries_.getRaw(i)); + } + size += dataSize; + size += 1 * getQueriesList().size(); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); + } + if (step_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStep()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest)) { + return super.equals(obj); + } + flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest other = (flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (!getQueriesList() + .equals(other.getQueriesList())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (hasStep() != other.hasStep()) return false; + if (hasStep()) { + if (!getStep() + .equals(other.getStep())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + if (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasStep()) { + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + getStep().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A request to get the metrics from a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskMetricsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskMetricsRequest) + flyteidl.admin.AgentOuterClass.GetTaskMetricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest.class, flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest.Builder.class); + } + + // Construct using flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + if (stepBuilder_ == null) { + step_ = null; + } else { + step_ = null; + stepBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest getDefaultInstanceForType() { + return flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest build() { + flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest buildPartial() { + flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest result = new flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.taskType_ = taskType_; + result.resourceMeta_ = resourceMeta_; + if (((bitField0_ & 0x00000004) != 0)) { + queries_ = queries_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.queries_ = queries_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + if (stepBuilder_ == null) { + result.step_ = step_; + } else { + result.step_ = stepBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest) { + return mergeFrom((flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest other) { + if (other == flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasStep()) { + mergeStep(other.getStep()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + queries_ = new com.google.protobuf.LazyStringArrayList(queries_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public com.google.protobuf.ProtocolStringList + getQueriesList() { + return queries_.getUnmodifiableView(); + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public int getQueriesCount() { + return queries_.size(); + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public java.lang.String getQueries(int index) { + return queries_.get(index); + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public com.google.protobuf.ByteString + getQueriesBytes(int index) { + return queries_.getByteString(index); + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public Builder setQueries( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public Builder addQueries( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + return this; + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public Builder addAllQueries( + java.lang.Iterable values) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queries_); + onChanged(); + return this; + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public Builder clearQueries() { + queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * The metrics to query. If empty, will return a default set of metrics.
+       * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
+       * 
+ * + * repeated string queries = 3; + */ + public Builder addQueriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+       * Start timestamp, inclusive.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+       * End timestamp, inclusive..
+       * 
+ * + * .google.protobuf.Timestamp end_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.Duration step_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> stepBuilder_; + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public boolean hasStep() { + return stepBuilder_ != null || step_ != null; + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public com.google.protobuf.Duration getStep() { + if (stepBuilder_ == null) { + return step_ == null ? com.google.protobuf.Duration.getDefaultInstance() : step_; + } else { + return stepBuilder_.getMessage(); + } + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public Builder setStep(com.google.protobuf.Duration value) { + if (stepBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + stepBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public Builder setStep( + com.google.protobuf.Duration.Builder builderForValue) { + if (stepBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + stepBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public Builder mergeStep(com.google.protobuf.Duration value) { + if (stepBuilder_ == null) { + if (step_ != null) { + step_ = + com.google.protobuf.Duration.newBuilder(step_).mergeFrom(value).buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + stepBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public Builder clearStep() { + if (stepBuilder_ == null) { + step_ = null; + onChanged(); + } else { + step_ = null; + stepBuilder_ = null; + } + + return this; + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public com.google.protobuf.Duration.Builder getStepBuilder() { + + onChanged(); + return getStepFieldBuilder().getBuilder(); + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + public com.google.protobuf.DurationOrBuilder getStepOrBuilder() { + if (stepBuilder_ != null) { + return stepBuilder_.getMessageOrBuilder(); + } else { + return step_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : step_; + } + } + /** + *
+       * Query resolution step width in duration format or float number of seconds.
+       * 
+ * + * .google.protobuf.Duration step = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getStepFieldBuilder() { + if (stepBuilder_ == null) { + stepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getStep(), + getParentForChildren(), + isClean()); + step_ = null; + } + return stepBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskMetricsRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskMetricsRequest) + private static final flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest(); + } + + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskMetricsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTaskMetricsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskMetricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + java.util.List + getResultsList(); + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + flyteidl.core.Metrics.ExecutionMetricResult getResults(int index); + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + int getResultsCount(); + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + java.util.List + getResultsOrBuilderList(); + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + flyteidl.core.Metrics.ExecutionMetricResultOrBuilder getResultsOrBuilder( + int index); + } + /** + *
+   * A response containing a list of metrics for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskMetricsResponse} + */ + public static final class GetTaskMetricsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskMetricsResponse) + GetTaskMetricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskMetricsResponse.newBuilder() to construct. + private GetTaskMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskMetricsResponse() { + results_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskMetricsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + results_.add( + input.readMessage(flyteidl.core.Metrics.ExecutionMetricResult.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse.class, flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse.Builder.class); + } + + public static final int RESULTS_FIELD_NUMBER = 1; + private java.util.List results_; + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public java.util.List getResultsList() { + return results_; + } + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public int getResultsCount() { + return results_.size(); + } + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public flyteidl.core.Metrics.ExecutionMetricResult getResults(int index) { + return results_.get(index); + } + /** + *
+     * The execution metric results.
+     * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public flyteidl.core.Metrics.ExecutionMetricResultOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse)) { + return super.equals(obj); + } + flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse other = (flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A response containing a list of metrics for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskMetricsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskMetricsResponse) + flyteidl.admin.AgentOuterClass.GetTaskMetricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse.class, flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse.Builder.class); + } + + // Construct using flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskMetricsResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse getDefaultInstanceForType() { + return flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse build() { + flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse buildPartial() { + flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse result = new flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse(this); + int from_bitField0_ = bitField0_; + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse) { + return mergeFrom((flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse other) { + if (other == flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse.getDefaultInstance()) return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Metrics.ExecutionMetricResult, flyteidl.core.Metrics.ExecutionMetricResult.Builder, flyteidl.core.Metrics.ExecutionMetricResultOrBuilder> resultsBuilder_; + + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public flyteidl.core.Metrics.ExecutionMetricResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder setResults( + int index, flyteidl.core.Metrics.ExecutionMetricResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder setResults( + int index, flyteidl.core.Metrics.ExecutionMetricResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder addResults(flyteidl.core.Metrics.ExecutionMetricResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder addResults( + int index, flyteidl.core.Metrics.ExecutionMetricResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder addResults( + flyteidl.core.Metrics.ExecutionMetricResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder addResults( + int index, flyteidl.core.Metrics.ExecutionMetricResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public flyteidl.core.Metrics.ExecutionMetricResult.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public flyteidl.core.Metrics.ExecutionMetricResultOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public flyteidl.core.Metrics.ExecutionMetricResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + flyteidl.core.Metrics.ExecutionMetricResult.getDefaultInstance()); + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public flyteidl.core.Metrics.ExecutionMetricResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, flyteidl.core.Metrics.ExecutionMetricResult.getDefaultInstance()); + } + /** + *
+       * The execution metric results.
+       * 
+ * + * repeated .flyteidl.core.ExecutionMetricResult results = 1; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Metrics.ExecutionMetricResult, flyteidl.core.Metrics.ExecutionMetricResult.Builder, flyteidl.core.Metrics.ExecutionMetricResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Metrics.ExecutionMetricResult, flyteidl.core.Metrics.ExecutionMetricResult.Builder, flyteidl.core.Metrics.ExecutionMetricResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskMetricsResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskMetricsResponse) + private static final flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse(); + } + + public static flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskMetricsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskMetricsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTaskLogsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskLogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 2; + */ + com.google.protobuf.ByteString getResourceMeta(); + + /** + *
+     * Number of lines to return.
+     * 
+ * + * uint64 lines = 3; + */ + long getLines(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * A request to get the log from a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskLogsRequest} + */ + public static final class GetTaskLogsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskLogsRequest) + GetTaskLogsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskLogsRequest.newBuilder() to construct. + private GetTaskLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskLogsRequest() { + taskType_ = ""; + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskLogsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + + resourceMeta_ = input.readBytes(); + break; + } + case 24: { + + lines_ = input.readUInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskLogsRequest.class, flyteidl.admin.AgentOuterClass.GetTaskLogsRequest.Builder.class); + } + + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_META_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + public static final int LINES_FIELD_NUMBER = 3; + private long lines_; + /** + *
+     * Number of lines to return.
+     * 
+ * + * uint64 lines = 3; + */ + public long getLines() { + return lines_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + output.writeBytes(2, resourceMeta_); + } + if (lines_ != 0L) { + output.writeUInt64(3, lines_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, resourceMeta_); + } + if (lines_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, lines_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.AgentOuterClass.GetTaskLogsRequest)) { + return super.equals(obj); + } + flyteidl.admin.AgentOuterClass.GetTaskLogsRequest other = (flyteidl.admin.AgentOuterClass.GetTaskLogsRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (getLines() + != other.getLines()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + hash = (37 * hash) + LINES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLines()); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.AgentOuterClass.GetTaskLogsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A request to get the log from a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskLogsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskLogsRequest) + flyteidl.admin.AgentOuterClass.GetTaskLogsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskLogsRequest.class, flyteidl.admin.AgentOuterClass.GetTaskLogsRequest.Builder.class); + } + + // Construct using flyteidl.admin.AgentOuterClass.GetTaskLogsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + lines_ = 0L; + + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsRequest getDefaultInstanceForType() { + return flyteidl.admin.AgentOuterClass.GetTaskLogsRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsRequest build() { + flyteidl.admin.AgentOuterClass.GetTaskLogsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsRequest buildPartial() { + flyteidl.admin.AgentOuterClass.GetTaskLogsRequest result = new flyteidl.admin.AgentOuterClass.GetTaskLogsRequest(this); + result.taskType_ = taskType_; + result.resourceMeta_ = resourceMeta_; + result.lines_ = lines_; + result.token_ = token_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.AgentOuterClass.GetTaskLogsRequest) { + return mergeFrom((flyteidl.admin.AgentOuterClass.GetTaskLogsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetTaskLogsRequest other) { + if (other == flyteidl.admin.AgentOuterClass.GetTaskLogsRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + if (other.getLines() != 0L) { + setLines(other.getLines()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.AgentOuterClass.GetTaskLogsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.AgentOuterClass.GetTaskLogsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + + private long lines_ ; + /** + *
+       * Number of lines to return.
+       * 
+ * + * uint64 lines = 3; + */ + public long getLines() { + return lines_; + } + /** + *
+       * Number of lines to return.
+       * 
+ * + * uint64 lines = 3; + */ + public Builder setLines(long value) { + + lines_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of lines to return.
+       * 
+ * + * uint64 lines = 3; + */ + public Builder clearLines() { + + lines_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskLogsRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskLogsRequest) + private static final flyteidl.admin.AgentOuterClass.GetTaskLogsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetTaskLogsRequest(); + } + + public static flyteidl.admin.AgentOuterClass.GetTaskLogsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskLogsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskLogsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTaskLogsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskLogsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + java.util.List + getResultsList(); + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + int getResultsCount(); + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + java.lang.String getResults(int index); + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + com.google.protobuf.ByteString + getResultsBytes(int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * A response containing the logs for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskLogsResponse} + */ + public static final class GetTaskLogsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskLogsResponse) + GetTaskLogsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskLogsResponse.newBuilder() to construct. + private GetTaskLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskLogsResponse() { + results_ = com.google.protobuf.LazyStringArrayList.EMPTY; + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskLogsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + results_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = results_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskLogsResponse.class, flyteidl.admin.AgentOuterClass.GetTaskLogsResponse.Builder.class); + } + + private int bitField0_; + public static final int RESULTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList results_; + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + public com.google.protobuf.ProtocolStringList + getResultsList() { + return results_; + } + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + public int getResultsCount() { + return results_.size(); + } + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + public java.lang.String getResults(int index) { + return results_.get(index); + } + /** + *
+     * The execution log results.
+     * 
+ * + * repeated string results = 1; + */ + public com.google.protobuf.ByteString + getResultsBytes(int index) { + return results_.getByteString(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, results_.getRaw(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < results_.size(); i++) { + dataSize += computeStringSizeNoTag(results_.getRaw(i)); + } + size += dataSize; + size += 1 * getResultsList().size(); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.AgentOuterClass.GetTaskLogsResponse)) { + return super.equals(obj); + } + flyteidl.admin.AgentOuterClass.GetTaskLogsResponse other = (flyteidl.admin.AgentOuterClass.GetTaskLogsResponse) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.AgentOuterClass.GetTaskLogsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A response containing the logs for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskLogsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskLogsResponse) + flyteidl.admin.AgentOuterClass.GetTaskLogsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.AgentOuterClass.GetTaskLogsResponse.class, flyteidl.admin.AgentOuterClass.GetTaskLogsResponse.Builder.class); + } + + // Construct using flyteidl.admin.AgentOuterClass.GetTaskLogsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + results_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskLogsResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsResponse getDefaultInstanceForType() { + return flyteidl.admin.AgentOuterClass.GetTaskLogsResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsResponse build() { + flyteidl.admin.AgentOuterClass.GetTaskLogsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsResponse buildPartial() { + flyteidl.admin.AgentOuterClass.GetTaskLogsResponse result = new flyteidl.admin.AgentOuterClass.GetTaskLogsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + results_ = results_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.AgentOuterClass.GetTaskLogsResponse) { + return mergeFrom((flyteidl.admin.AgentOuterClass.GetTaskLogsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetTaskLogsResponse other) { + if (other == flyteidl.admin.AgentOuterClass.GetTaskLogsResponse.getDefaultInstance()) return this; + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.AgentOuterClass.GetTaskLogsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.AgentOuterClass.GetTaskLogsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList results_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = new com.google.protobuf.LazyStringArrayList(results_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public com.google.protobuf.ProtocolStringList + getResultsList() { + return results_.getUnmodifiableView(); + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public int getResultsCount() { + return results_.size(); + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public java.lang.String getResults(int index) { + return results_.get(index); + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public com.google.protobuf.ByteString + getResultsBytes(int index) { + return results_.getByteString(index); + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public Builder setResults( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public Builder addResults( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + return this; + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + return this; + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public Builder clearResults() { + results_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The execution log results.
+       * 
+ * + * repeated string results = 1; + */ + public Builder addResultsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskLogsResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskLogsResponse) + private static final flyteidl.admin.AgentOuterClass.GetTaskLogsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetTaskLogsResponse(); + } + + public static flyteidl.admin.AgentOuterClass.GetTaskLogsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskLogsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskLogsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.AgentOuterClass.GetTaskLogsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; private static final @@ -12103,6 +16532,26 @@ public flyteidl.admin.AgentOuterClass.ListAgentsResponse getDefaultInstanceForTy private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_admin_ListAgentsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskMetricsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskMetricsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskMetricsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskMetricsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskLogsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskLogsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskLogsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskLogsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -12114,51 +16563,63 @@ public flyteidl.admin.AgentOuterClass.ListAgentsResponse getDefaultInstanceForTy java.lang.String[] descriptorData = { "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" + "dmin\032\034flyteidl/core/literals.proto\032\031flyt" + - "eidl/core/tasks.proto\032\035flyteidl/core/int" + - "erface.proto\032\036flyteidl/core/identifier.p" + - "roto\032\035flyteidl/core/execution.proto\"\232\004\n\025" + - "TaskExecutionMetadata\022A\n\021task_execution_" + - "id\030\001 \001(\0132&.flyteidl.core.TaskExecutionId" + - "entifier\022\021\n\tnamespace\030\002 \001(\t\022A\n\006labels\030\003 " + - "\003(\01321.flyteidl.admin.TaskExecutionMetada" + - "ta.LabelsEntry\022K\n\013annotations\030\004 \003(\01326.fl" + - "yteidl.admin.TaskExecutionMetadata.Annot" + - "ationsEntry\022\033\n\023k8s_service_account\030\005 \001(\t" + - "\022^\n\025environment_variables\030\006 \003(\0132?.flytei" + - "dl.admin.TaskExecutionMetadata.Environme" + - "ntVariablesEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031E" + - "nvironmentVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"\314\001\n\021CreateTaskRequest\022)" + - "\n\006inputs\030\001 \001(\0132\031.flyteidl.core.LiteralMa" + - "p\022-\n\010template\030\002 \001(\0132\033.flyteidl.core.Task" + - "Template\022\025\n\routput_prefix\030\003 \001(\t\022F\n\027task_" + - "execution_metadata\030\004 \001(\0132%.flyteidl.admi" + - "n.TaskExecutionMetadata\"b\n\022CreateTaskRes" + - "ponse\022\027\n\rresource_meta\030\001 \001(\014H\000\022,\n\010resour" + - "ce\030\002 \001(\0132\030.flyteidl.admin.ResourceH\000B\005\n\003" + - "res\":\n\016GetTaskRequest\022\021\n\ttask_type\030\001 \001(\t" + - "\022\025\n\rresource_meta\030\002 \001(\014\"h\n\017GetTaskRespon" + - "se\022*\n\010resource\030\001 \001(\0132\030.flyteidl.admin.Re" + - "source\022)\n\tlog_links\030\002 \003(\0132\026.flyteidl.cor" + - "e.TaskLog\"\230\001\n\010Resource\022$\n\005state\030\001 \001(\0162\025." + - "flyteidl.admin.State\022*\n\007outputs\030\002 \001(\0132\031." + - "flyteidl.core.LiteralMap\022\017\n\007message\030\003 \001(" + - "\t\022)\n\tlog_links\030\004 \003(\0132\026.flyteidl.core.Tas" + - "kLog\"=\n\021DeleteTaskRequest\022\021\n\ttask_type\030\001" + - " \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n\022DeleteTas" + - "kResponse\"3\n\005Agent\022\014\n\004name\030\001 \001(\t\022\034\n\024supp" + - "orted_task_types\030\002 \003(\t\"\037\n\017GetAgentReques" + - "t\022\014\n\004name\030\001 \001(\t\"8\n\020GetAgentResponse\022$\n\005a" + - "gent\030\001 \001(\0132\025.flyteidl.admin.Agent\"\023\n\021Lis" + - "tAgentsRequest\";\n\022ListAgentsResponse\022%\n\006" + - "agents\030\001 \003(\0132\025.flyteidl.admin.Agent*^\n\005S" + - "tate\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT" + - "_FAILURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\t" + - "SUCCEEDED\020\004B=Z;github.com/flyteorg/flyte" + - "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" + - "o3" + "eidl/core/tasks.proto\032\036flyteidl/core/ide" + + "ntifier.proto\032\035flyteidl/core/execution.p" + + "roto\032\033flyteidl/core/metrics.proto\032\036googl" + + "e/protobuf/duration.proto\032\037google/protob" + + "uf/timestamp.proto\"\232\004\n\025TaskExecutionMeta" + + "data\022A\n\021task_execution_id\030\001 \001(\0132&.flytei" + + "dl.core.TaskExecutionIdentifier\022\021\n\tnames" + + "pace\030\002 \001(\t\022A\n\006labels\030\003 \003(\01321.flyteidl.ad" + + "min.TaskExecutionMetadata.LabelsEntry\022K\n" + + "\013annotations\030\004 \003(\01326.flyteidl.admin.Task" + + "ExecutionMetadata.AnnotationsEntry\022\033\n\023k8" + + "s_service_account\030\005 \001(\t\022^\n\025environment_v" + + "ariables\030\006 \003(\0132?.flyteidl.admin.TaskExec" + + "utionMetadata.EnvironmentVariablesEntry\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariabl" + + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\314\001\n\021CreateTaskRequest\022)\n\006inputs\030\001 \001(\0132\031." + + "flyteidl.core.LiteralMap\022-\n\010template\030\002 \001" + + "(\0132\033.flyteidl.core.TaskTemplate\022\025\n\routpu" + + "t_prefix\030\003 \001(\t\022F\n\027task_execution_metadat" + + "a\030\004 \001(\0132%.flyteidl.admin.TaskExecutionMe" + + "tadata\"b\n\022CreateTaskResponse\022\027\n\rresource" + + "_meta\030\001 \001(\014H\000\022,\n\010resource\030\002 \001(\0132\030.flytei" + + "dl.admin.ResourceH\000B\005\n\003res\":\n\016GetTaskReq" + + "uest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresource_meta" + + "\030\002 \001(\014\"h\n\017GetTaskResponse\022*\n\010resource\030\001 " + + "\001(\0132\030.flyteidl.admin.Resource\022)\n\tlog_lin" + + "ks\030\002 \003(\0132\026.flyteidl.core.TaskLog\"\230\001\n\010Res" + + "ource\022$\n\005state\030\001 \001(\0162\025.flyteidl.admin.St" + + "ate\022*\n\007outputs\030\002 \001(\0132\031.flyteidl.core.Lit" + + "eralMap\022\017\n\007message\030\003 \001(\t\022)\n\tlog_links\030\004 " + + "\003(\0132\026.flyteidl.core.TaskLog\"=\n\021DeleteTas" + + "kRequest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresource_" + + "meta\030\002 \001(\014\"\024\n\022DeleteTaskResponse\"3\n\005Agen" + + "t\022\014\n\004name\030\001 \001(\t\022\034\n\024supported_task_types\030" + + "\002 \003(\t\"\037\n\017GetAgentRequest\022\014\n\004name\030\001 \001(\t\"8" + + "\n\020GetAgentResponse\022$\n\005agent\030\001 \001(\0132\025.flyt" + + "eidl.admin.Agent\"\023\n\021ListAgentsRequest\";\n" + + "\022ListAgentsResponse\022%\n\006agents\030\001 \003(\0132\025.fl" + + "yteidl.admin.Agent\"\331\001\n\025GetTaskMetricsReq" + + "uest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rresource_meta" + + "\030\002 \001(\014\022\017\n\007queries\030\003 \003(\t\022.\n\nstart_time\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\022\'\n" + + "\004step\030\006 \001(\0132\031.google.protobuf.Duration\"O" + + "\n\026GetTaskMetricsResponse\0225\n\007results\030\001 \003(" + + "\0132$.flyteidl.core.ExecutionMetricResult\"" + + "\\\n\022GetTaskLogsRequest\022\021\n\ttask_type\030\001 \001(\t" + + "\022\025\n\rresource_meta\030\002 \001(\014\022\r\n\005lines\030\003 \001(\004\022\r" + + "\n\005token\030\004 \001(\t\"5\n\023GetTaskLogsResponse\022\017\n\007" + + "results\030\001 \003(\t\022\r\n\005token\030\002 \001(\t*^\n\005State\022\025\n" + + "\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILUR" + + "E\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEED" + + "ED\020\004B=Z;github.com/flyteorg/flyte/flytei" + + "dl/gen/pb-go/flyteidl/adminb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -12173,9 +16634,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { flyteidl.core.Literals.getDescriptor(), flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), flyteidl.core.IdentifierOuterClass.getDescriptor(), flyteidl.core.Execution.getDescriptor(), + flyteidl.core.Metrics.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor = getDescriptor().getMessageTypes().get(0); @@ -12273,11 +16736,37 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_admin_ListAgentsResponse_descriptor, new java.lang.String[] { "Agents", }); + internal_static_flyteidl_admin_GetTaskMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_GetTaskMetricsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskMetricsRequest_descriptor, + new java.lang.String[] { "TaskType", "ResourceMeta", "Queries", "StartTime", "EndTime", "Step", }); + internal_static_flyteidl_admin_GetTaskMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_GetTaskMetricsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskMetricsResponse_descriptor, + new java.lang.String[] { "Results", }); + internal_static_flyteidl_admin_GetTaskLogsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_admin_GetTaskLogsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskLogsRequest_descriptor, + new java.lang.String[] { "TaskType", "ResourceMeta", "Lines", "Token", }); + internal_static_flyteidl_admin_GetTaskLogsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_admin_GetTaskLogsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskLogsResponse_descriptor, + new java.lang.String[] { "Results", "Token", }); flyteidl.core.Literals.getDescriptor(); flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); flyteidl.core.IdentifierOuterClass.getDescriptor(); flyteidl.core.Execution.getDescriptor(); + flyteidl.core.Metrics.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/flyteidl/gen/pb-java/flyteidl/core/Metrics.java b/flyteidl/gen/pb-java/flyteidl/core/Metrics.java index 145e9c4443..ec533d4be7 100644 --- a/flyteidl/gen/pb-java/flyteidl/core/Metrics.java +++ b/flyteidl/gen/pb-java/flyteidl/core/Metrics.java @@ -2529,11 +2529,923 @@ public flyteidl.core.Metrics.Span getDefaultInstanceForType() { } + public interface ExecutionMetricResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionMetricResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+     * 
+ * + * string metric = 1; + */ + java.lang.String getMetric(); + /** + *
+     * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+     * 
+ * + * string metric = 1; + */ + com.google.protobuf.ByteString + getMetricBytes(); + + /** + *
+     * The result data in prometheus range query result format
+     * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+     * This may include multiple time series, differentiated by their metric labels.
+     * Start time is greater of (execution attempt start, 48h ago)
+     * End time is lesser of (execution attempt end, now)
+     * 
+ * + * .google.protobuf.Struct data = 2; + */ + boolean hasData(); + /** + *
+     * The result data in prometheus range query result format
+     * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+     * This may include multiple time series, differentiated by their metric labels.
+     * Start time is greater of (execution attempt start, 48h ago)
+     * End time is lesser of (execution attempt end, now)
+     * 
+ * + * .google.protobuf.Struct data = 2; + */ + com.google.protobuf.Struct getData(); + /** + *
+     * The result data in prometheus range query result format
+     * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+     * This may include multiple time series, differentiated by their metric labels.
+     * Start time is greater of (execution attempt start, 48h ago)
+     * End time is lesser of (execution attempt end, now)
+     * 
+ * + * .google.protobuf.Struct data = 2; + */ + com.google.protobuf.StructOrBuilder getDataOrBuilder(); + } + /** + *
+   * ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionMetricResult} + */ + public static final class ExecutionMetricResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionMetricResult) + ExecutionMetricResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionMetricResult.newBuilder() to construct. + private ExecutionMetricResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionMetricResult() { + metric_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionMetricResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + metric_ = s; + break; + } + case 18: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (data_ != null) { + subBuilder = data_.toBuilder(); + } + data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(data_); + data_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_ExecutionMetricResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_ExecutionMetricResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Metrics.ExecutionMetricResult.class, flyteidl.core.Metrics.ExecutionMetricResult.Builder.class); + } + + public static final int METRIC_FIELD_NUMBER = 1; + private volatile java.lang.Object metric_; + /** + *
+     * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+     * 
+ * + * string metric = 1; + */ + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metric_ = s; + return s; + } + } + /** + *
+     * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+     * 
+ * + * string metric = 1; + */ + public com.google.protobuf.ByteString + getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metric_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.Struct data_; + /** + *
+     * The result data in prometheus range query result format
+     * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+     * This may include multiple time series, differentiated by their metric labels.
+     * Start time is greater of (execution attempt start, 48h ago)
+     * End time is lesser of (execution attempt end, now)
+     * 
+ * + * .google.protobuf.Struct data = 2; + */ + public boolean hasData() { + return data_ != null; + } + /** + *
+     * The result data in prometheus range query result format
+     * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+     * This may include multiple time series, differentiated by their metric labels.
+     * Start time is greater of (execution attempt start, 48h ago)
+     * End time is lesser of (execution attempt end, now)
+     * 
+ * + * .google.protobuf.Struct data = 2; + */ + public com.google.protobuf.Struct getData() { + return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; + } + /** + *
+     * The result data in prometheus range query result format
+     * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+     * This may include multiple time series, differentiated by their metric labels.
+     * Start time is greater of (execution attempt start, 48h ago)
+     * End time is lesser of (execution attempt end, now)
+     * 
+ * + * .google.protobuf.Struct data = 2; + */ + public com.google.protobuf.StructOrBuilder getDataOrBuilder() { + return getData(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMetricBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metric_); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMetricBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metric_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Metrics.ExecutionMetricResult)) { + return super.equals(obj); + } + flyteidl.core.Metrics.ExecutionMetricResult other = (flyteidl.core.Metrics.ExecutionMetricResult) obj; + + if (!getMetric() + .equals(other.getMetric())) return false; + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Metrics.ExecutionMetricResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Metrics.ExecutionMetricResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionMetricResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionMetricResult) + flyteidl.core.Metrics.ExecutionMetricResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_ExecutionMetricResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_ExecutionMetricResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Metrics.ExecutionMetricResult.class, flyteidl.core.Metrics.ExecutionMetricResult.Builder.class); + } + + // Construct using flyteidl.core.Metrics.ExecutionMetricResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + metric_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_ExecutionMetricResult_descriptor; + } + + @java.lang.Override + public flyteidl.core.Metrics.ExecutionMetricResult getDefaultInstanceForType() { + return flyteidl.core.Metrics.ExecutionMetricResult.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Metrics.ExecutionMetricResult build() { + flyteidl.core.Metrics.ExecutionMetricResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Metrics.ExecutionMetricResult buildPartial() { + flyteidl.core.Metrics.ExecutionMetricResult result = new flyteidl.core.Metrics.ExecutionMetricResult(this); + result.metric_ = metric_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Metrics.ExecutionMetricResult) { + return mergeFrom((flyteidl.core.Metrics.ExecutionMetricResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Metrics.ExecutionMetricResult other) { + if (other == flyteidl.core.Metrics.ExecutionMetricResult.getDefaultInstance()) return this; + if (!other.getMetric().isEmpty()) { + metric_ = other.metric_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Metrics.ExecutionMetricResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Metrics.ExecutionMetricResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object metric_ = ""; + /** + *
+       * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+       * 
+ * + * string metric = 1; + */ + public java.lang.String getMetric() { + java.lang.Object ref = metric_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metric_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+       * 
+ * + * string metric = 1; + */ + public com.google.protobuf.ByteString + getMetricBytes() { + java.lang.Object ref = metric_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metric_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+       * 
+ * + * string metric = 1; + */ + public Builder setMetric( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metric_ = value; + onChanged(); + return this; + } + /** + *
+       * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+       * 
+ * + * string metric = 1; + */ + public Builder clearMetric() { + + metric_ = getDefaultInstance().getMetric(); + onChanged(); + return this; + } + /** + *
+       * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
+       * 
+ * + * string metric = 1; + */ + public Builder setMetricBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metric_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct data_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public com.google.protobuf.Struct getData() { + if (dataBuilder_ == null) { + return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public Builder setData(com.google.protobuf.Struct value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public Builder setData( + com.google.protobuf.Struct.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public Builder mergeData(com.google.protobuf.Struct value) { + if (dataBuilder_ == null) { + if (data_ != null) { + data_ = + com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public com.google.protobuf.Struct.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + public com.google.protobuf.StructOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : data_; + } + } + /** + *
+       * The result data in prometheus range query result format
+       * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
+       * This may include multiple time series, differentiated by their metric labels.
+       * Start time is greater of (execution attempt start, 48h ago)
+       * End time is lesser of (execution attempt end, now)
+       * 
+ * + * .google.protobuf.Struct data = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ExecutionMetricResult) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionMetricResult) + private static final flyteidl.core.Metrics.ExecutionMetricResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Metrics.ExecutionMetricResult(); + } + + public static flyteidl.core.Metrics.ExecutionMetricResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionMetricResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionMetricResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Metrics.ExecutionMetricResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_core_Span_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_core_Span_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ExecutionMetricResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ExecutionMetricResult_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2545,18 +3457,21 @@ public flyteidl.core.Metrics.Span getDefaultInstanceForType() { java.lang.String[] descriptorData = { "\n\033flyteidl/core/metrics.proto\022\rflyteidl." + "core\032\036flyteidl/core/identifier.proto\032\037go" + - "ogle/protobuf/timestamp.proto\"\337\002\n\004Span\022." + - "\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + - "uf.Timestamp\022A\n\013workflow_id\030\003 \001(\0132*.flyt" + - "eidl.core.WorkflowExecutionIdentifierH\000\022" + - "9\n\007node_id\030\004 \001(\0132&.flyteidl.core.NodeExe" + - "cutionIdentifierH\000\0229\n\007task_id\030\005 \001(\0132&.fl" + - "yteidl.core.TaskExecutionIdentifierH\000\022\026\n" + - "\014operation_id\030\006 \001(\tH\000\022\"\n\005spans\030\007 \003(\0132\023.f" + - "lyteidl.core.SpanB\004\n\002idB; + + /** + * Calls GetTaskMetrics. + * @param request GetTaskMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetTaskMetricsResponse + */ + public getTaskMetrics(request: flyteidl.admin.IGetTaskMetricsRequest, callback: flyteidl.service.AsyncAgentService.GetTaskMetricsCallback): void; + + /** + * Calls GetTaskMetrics. + * @param request GetTaskMetricsRequest message or plain object + * @returns Promise + */ + public getTaskMetrics(request: flyteidl.admin.IGetTaskMetricsRequest): Promise; + + /** + * Calls GetTaskLogs. + * @param request GetTaskLogsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetTaskLogsResponse + */ + public getTaskLogs(request: flyteidl.admin.IGetTaskLogsRequest, callback: flyteidl.service.AsyncAgentService.GetTaskLogsCallback): void; + + /** + * Calls GetTaskLogs. + * @param request GetTaskLogsRequest message or plain object + * @returns Promise + */ + public getTaskLogs(request: flyteidl.admin.IGetTaskLogsRequest): Promise; } namespace AsyncAgentService { @@ -20904,6 +21252,20 @@ export namespace flyteidl { * @param [response] DeleteTaskResponse */ type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.admin.DeleteTaskResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskMetrics}. + * @param error Error, if any + * @param [response] GetTaskMetricsResponse + */ + type GetTaskMetricsCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskMetricsResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskLogs}. + * @param error Error, if any + * @param [response] GetTaskLogsResponse + */ + type GetTaskLogsCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskLogsResponse) => void; } /** Represents an AgentMetadataService */ diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 3bd5e9bd3d..75fe816e35 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -17789,6 +17789,135 @@ return Span; })(); + core.ExecutionMetricResult = (function() { + + /** + * Properties of an ExecutionMetricResult. + * @memberof flyteidl.core + * @interface IExecutionMetricResult + * @property {string|null} [metric] ExecutionMetricResult metric + * @property {google.protobuf.IStruct|null} [data] ExecutionMetricResult data + */ + + /** + * Constructs a new ExecutionMetricResult. + * @memberof flyteidl.core + * @classdesc Represents an ExecutionMetricResult. + * @implements IExecutionMetricResult + * @constructor + * @param {flyteidl.core.IExecutionMetricResult=} [properties] Properties to set + */ + function ExecutionMetricResult(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionMetricResult metric. + * @member {string} metric + * @memberof flyteidl.core.ExecutionMetricResult + * @instance + */ + ExecutionMetricResult.prototype.metric = ""; + + /** + * ExecutionMetricResult data. + * @member {google.protobuf.IStruct|null|undefined} data + * @memberof flyteidl.core.ExecutionMetricResult + * @instance + */ + ExecutionMetricResult.prototype.data = null; + + /** + * Creates a new ExecutionMetricResult instance using the specified properties. + * @function create + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {flyteidl.core.IExecutionMetricResult=} [properties] Properties to set + * @returns {flyteidl.core.ExecutionMetricResult} ExecutionMetricResult instance + */ + ExecutionMetricResult.create = function create(properties) { + return new ExecutionMetricResult(properties); + }; + + /** + * Encodes the specified ExecutionMetricResult message. Does not implicitly {@link flyteidl.core.ExecutionMetricResult.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {flyteidl.core.IExecutionMetricResult} message ExecutionMetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionMetricResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metric != null && message.hasOwnProperty("metric")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metric); + if (message.data != null && message.hasOwnProperty("data")) + $root.google.protobuf.Struct.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionMetricResult message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ExecutionMetricResult} ExecutionMetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionMetricResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionMetricResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metric = reader.string(); + break; + case 2: + message.data = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionMetricResult message. + * @function verify + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionMetricResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metric != null && message.hasOwnProperty("metric")) + if (!$util.isString(message.metric)) + return "metric: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + var error = $root.google.protobuf.Struct.verify(message.data); + if (error) + return "data." + error; + } + return null; + }; + + return ExecutionMetricResult; + })(); + core.WorkflowClosure = (function() { /** @@ -22879,23 +23008,532 @@ /** * Decodes a GetAgentRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.GetAgentRequest + * @memberof flyteidl.admin.GetAgentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAgentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetAgentRequest message. + * @function verify + * @memberof flyteidl.admin.GetAgentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAgentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return GetAgentRequest; + })(); + + admin.GetAgentResponse = (function() { + + /** + * Properties of a GetAgentResponse. + * @memberof flyteidl.admin + * @interface IGetAgentResponse + * @property {flyteidl.admin.IAgent|null} [agent] GetAgentResponse agent + */ + + /** + * Constructs a new GetAgentResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetAgentResponse. + * @implements IGetAgentResponse + * @constructor + * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set + */ + function GetAgentResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetAgentResponse agent. + * @member {flyteidl.admin.IAgent|null|undefined} agent + * @memberof flyteidl.admin.GetAgentResponse + * @instance + */ + GetAgentResponse.prototype.agent = null; + + /** + * Creates a new GetAgentResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse instance + */ + GetAgentResponse.create = function create(properties) { + return new GetAgentResponse(properties); + }; + + /** + * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {flyteidl.admin.IGetAgentResponse} message GetAgentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAgentResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.agent != null && message.hasOwnProperty("agent")) + $root.flyteidl.admin.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetAgentResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAgentResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.agent = $root.flyteidl.admin.Agent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetAgentResponse message. + * @function verify + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAgentResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.agent != null && message.hasOwnProperty("agent")) { + var error = $root.flyteidl.admin.Agent.verify(message.agent); + if (error) + return "agent." + error; + } + return null; + }; + + return GetAgentResponse; + })(); + + admin.ListAgentsRequest = (function() { + + /** + * Properties of a ListAgentsRequest. + * @memberof flyteidl.admin + * @interface IListAgentsRequest + */ + + /** + * Constructs a new ListAgentsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ListAgentsRequest. + * @implements IListAgentsRequest + * @constructor + * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set + */ + function ListAgentsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ListAgentsRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest instance + */ + ListAgentsRequest.create = function create(properties) { + return new ListAgentsRequest(properties); + }; + + /** + * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {flyteidl.admin.IListAgentsRequest} message ListAgentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAgentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ListAgentsRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAgentsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListAgentsRequest message. + * @function verify + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAgentsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ListAgentsRequest; + })(); + + admin.ListAgentsResponse = (function() { + + /** + * Properties of a ListAgentsResponse. + * @memberof flyteidl.admin + * @interface IListAgentsResponse + * @property {Array.|null} [agents] ListAgentsResponse agents + */ + + /** + * Constructs a new ListAgentsResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ListAgentsResponse. + * @implements IListAgentsResponse + * @constructor + * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set + */ + function ListAgentsResponse(properties) { + this.agents = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListAgentsResponse agents. + * @member {Array.} agents + * @memberof flyteidl.admin.ListAgentsResponse + * @instance + */ + ListAgentsResponse.prototype.agents = $util.emptyArray; + + /** + * Creates a new ListAgentsResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse instance + */ + ListAgentsResponse.create = function create(properties) { + return new ListAgentsResponse(properties); + }; + + /** + * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {flyteidl.admin.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAgentsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.agents != null && message.agents.length) + for (var i = 0; i < message.agents.length; ++i) + $root.flyteidl.admin.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ListAgentsResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAgentsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.agents && message.agents.length)) + message.agents = []; + message.agents.push($root.flyteidl.admin.Agent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListAgentsResponse message. + * @function verify + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAgentsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.agents != null && message.hasOwnProperty("agents")) { + if (!Array.isArray(message.agents)) + return "agents: array expected"; + for (var i = 0; i < message.agents.length; ++i) { + var error = $root.flyteidl.admin.Agent.verify(message.agents[i]); + if (error) + return "agents." + error; + } + } + return null; + }; + + return ListAgentsResponse; + })(); + + admin.GetTaskMetricsRequest = (function() { + + /** + * Properties of a GetTaskMetricsRequest. + * @memberof flyteidl.admin + * @interface IGetTaskMetricsRequest + * @property {string|null} [taskType] GetTaskMetricsRequest taskType + * @property {Uint8Array|null} [resourceMeta] GetTaskMetricsRequest resourceMeta + * @property {Array.|null} [queries] GetTaskMetricsRequest queries + * @property {google.protobuf.ITimestamp|null} [startTime] GetTaskMetricsRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] GetTaskMetricsRequest endTime + * @property {google.protobuf.IDuration|null} [step] GetTaskMetricsRequest step + */ + + /** + * Constructs a new GetTaskMetricsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskMetricsRequest. + * @implements IGetTaskMetricsRequest + * @constructor + * @param {flyteidl.admin.IGetTaskMetricsRequest=} [properties] Properties to set + */ + function GetTaskMetricsRequest(properties) { + this.queries = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskMetricsRequest taskType. + * @member {string} taskType + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.taskType = ""; + + /** + * GetTaskMetricsRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * GetTaskMetricsRequest queries. + * @member {Array.} queries + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.queries = $util.emptyArray; + + /** + * GetTaskMetricsRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.startTime = null; + + /** + * GetTaskMetricsRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.endTime = null; + + /** + * GetTaskMetricsRequest step. + * @member {google.protobuf.IDuration|null|undefined} step + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.step = null; + + /** + * Creates a new GetTaskMetricsRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @static + * @param {flyteidl.admin.IGetTaskMetricsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskMetricsRequest} GetTaskMetricsRequest instance + */ + GetTaskMetricsRequest.create = function create(properties) { + return new GetTaskMetricsRequest(properties); + }; + + /** + * Encodes the specified GetTaskMetricsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @static + * @param {flyteidl.admin.IGetTaskMetricsRequest} message GetTaskMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskMetricsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.queries != null && message.queries.length) + for (var i = 0; i < message.queries.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.queries[i]); + if (message.startTime != null && message.hasOwnProperty("startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && message.hasOwnProperty("endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.step != null && message.hasOwnProperty("step")) + $root.google.protobuf.Duration.encode(message.step, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskMetricsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest + * @returns {flyteidl.admin.GetTaskMetricsRequest} GetTaskMetricsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAgentRequest.decode = function decode(reader, length) { + GetTaskMetricsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskMetricsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.taskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + case 3: + if (!(message.queries && message.queries.length)) + message.queries = []; + message.queries.push(reader.string()); + break; + case 4: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.step = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22906,43 +23544,69 @@ }; /** - * Verifies a GetAgentRequest message. + * Verifies a GetTaskMetricsRequest message. * @function verify - * @memberof flyteidl.admin.GetAgentRequest + * @memberof flyteidl.admin.GetTaskMetricsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAgentRequest.verify = function verify(message) { + GetTaskMetricsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + if (message.queries != null && message.hasOwnProperty("queries")) { + if (!Array.isArray(message.queries)) + return "queries: array expected"; + for (var i = 0; i < message.queries.length; ++i) + if (!$util.isString(message.queries[i])) + return "queries: string[] expected"; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.step != null && message.hasOwnProperty("step")) { + var error = $root.google.protobuf.Duration.verify(message.step); + if (error) + return "step." + error; + } return null; }; - return GetAgentRequest; + return GetTaskMetricsRequest; })(); - admin.GetAgentResponse = (function() { + admin.GetTaskMetricsResponse = (function() { /** - * Properties of a GetAgentResponse. + * Properties of a GetTaskMetricsResponse. * @memberof flyteidl.admin - * @interface IGetAgentResponse - * @property {flyteidl.admin.IAgent|null} [agent] GetAgentResponse agent + * @interface IGetTaskMetricsResponse + * @property {Array.|null} [results] GetTaskMetricsResponse results */ /** - * Constructs a new GetAgentResponse. + * Constructs a new GetTaskMetricsResponse. * @memberof flyteidl.admin - * @classdesc Represents a GetAgentResponse. - * @implements IGetAgentResponse + * @classdesc Represents a GetTaskMetricsResponse. + * @implements IGetTaskMetricsResponse * @constructor - * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set + * @param {flyteidl.admin.IGetTaskMetricsResponse=} [properties] Properties to set */ - function GetAgentResponse(properties) { + function GetTaskMetricsResponse(properties) { + this.results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22950,62 +23614,65 @@ } /** - * GetAgentResponse agent. - * @member {flyteidl.admin.IAgent|null|undefined} agent - * @memberof flyteidl.admin.GetAgentResponse + * GetTaskMetricsResponse results. + * @member {Array.} results + * @memberof flyteidl.admin.GetTaskMetricsResponse * @instance */ - GetAgentResponse.prototype.agent = null; + GetTaskMetricsResponse.prototype.results = $util.emptyArray; /** - * Creates a new GetAgentResponse instance using the specified properties. + * Creates a new GetTaskMetricsResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.GetAgentResponse + * @memberof flyteidl.admin.GetTaskMetricsResponse * @static - * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse instance + * @param {flyteidl.admin.IGetTaskMetricsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskMetricsResponse} GetTaskMetricsResponse instance */ - GetAgentResponse.create = function create(properties) { - return new GetAgentResponse(properties); + GetTaskMetricsResponse.create = function create(properties) { + return new GetTaskMetricsResponse(properties); }; /** - * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. + * Encodes the specified GetTaskMetricsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.GetAgentResponse + * @memberof flyteidl.admin.GetTaskMetricsResponse * @static - * @param {flyteidl.admin.IGetAgentResponse} message GetAgentResponse message or plain object to encode + * @param {flyteidl.admin.IGetTaskMetricsResponse} message GetTaskMetricsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAgentResponse.encode = function encode(message, writer) { + GetTaskMetricsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.agent != null && message.hasOwnProperty("agent")) - $root.flyteidl.admin.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + $root.flyteidl.core.ExecutionMetricResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a GetAgentResponse message from the specified reader or buffer. + * Decodes a GetTaskMetricsResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.GetAgentResponse + * @memberof flyteidl.admin.GetTaskMetricsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse + * @returns {flyteidl.admin.GetTaskMetricsResponse} GetTaskMetricsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAgentResponse.decode = function decode(reader, length) { + GetTaskMetricsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskMetricsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.agent = $root.flyteidl.admin.Agent.decode(reader, reader.uint32()); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.flyteidl.core.ExecutionMetricResult.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -23016,44 +23683,52 @@ }; /** - * Verifies a GetAgentResponse message. + * Verifies a GetTaskMetricsResponse message. * @function verify - * @memberof flyteidl.admin.GetAgentResponse + * @memberof flyteidl.admin.GetTaskMetricsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAgentResponse.verify = function verify(message) { + GetTaskMetricsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) { - var error = $root.flyteidl.admin.Agent.verify(message.agent); - if (error) - return "agent." + error; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) { + var error = $root.flyteidl.core.ExecutionMetricResult.verify(message.results[i]); + if (error) + return "results." + error; + } } return null; }; - return GetAgentResponse; + return GetTaskMetricsResponse; })(); - admin.ListAgentsRequest = (function() { + admin.GetTaskLogsRequest = (function() { /** - * Properties of a ListAgentsRequest. + * Properties of a GetTaskLogsRequest. * @memberof flyteidl.admin - * @interface IListAgentsRequest + * @interface IGetTaskLogsRequest + * @property {string|null} [taskType] GetTaskLogsRequest taskType + * @property {Uint8Array|null} [resourceMeta] GetTaskLogsRequest resourceMeta + * @property {Long|null} [lines] GetTaskLogsRequest lines + * @property {string|null} [token] GetTaskLogsRequest token */ /** - * Constructs a new ListAgentsRequest. + * Constructs a new GetTaskLogsRequest. * @memberof flyteidl.admin - * @classdesc Represents a ListAgentsRequest. - * @implements IListAgentsRequest + * @classdesc Represents a GetTaskLogsRequest. + * @implements IGetTaskLogsRequest * @constructor - * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set + * @param {flyteidl.admin.IGetTaskLogsRequest=} [properties] Properties to set */ - function ListAgentsRequest(properties) { + function GetTaskLogsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23061,50 +23736,102 @@ } /** - * Creates a new ListAgentsRequest instance using the specified properties. + * GetTaskLogsRequest taskType. + * @member {string} taskType + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.taskType = ""; + + /** + * GetTaskLogsRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * GetTaskLogsRequest lines. + * @member {Long} lines + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.lines = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * GetTaskLogsRequest token. + * @member {string} token + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.token = ""; + + /** + * Creates a new GetTaskLogsRequest instance using the specified properties. * @function create - * @memberof flyteidl.admin.ListAgentsRequest + * @memberof flyteidl.admin.GetTaskLogsRequest * @static - * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest instance + * @param {flyteidl.admin.IGetTaskLogsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsRequest} GetTaskLogsRequest instance */ - ListAgentsRequest.create = function create(properties) { - return new ListAgentsRequest(properties); + GetTaskLogsRequest.create = function create(properties) { + return new GetTaskLogsRequest(properties); }; /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. + * Encodes the specified GetTaskLogsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskLogsRequest.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ListAgentsRequest + * @memberof flyteidl.admin.GetTaskLogsRequest * @static - * @param {flyteidl.admin.IListAgentsRequest} message ListAgentsRequest message or plain object to encode + * @param {flyteidl.admin.IGetTaskLogsRequest} message GetTaskLogsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAgentsRequest.encode = function encode(message, writer) { + GetTaskLogsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.lines != null && message.hasOwnProperty("lines")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.lines); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); return writer; }; /** - * Decodes a ListAgentsRequest message from the specified reader or buffer. + * Decodes a GetTaskLogsRequest message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ListAgentsRequest + * @memberof flyteidl.admin.GetTaskLogsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest + * @returns {flyteidl.admin.GetTaskLogsRequest} GetTaskLogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAgentsRequest.decode = function decode(reader, length) { + GetTaskLogsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + case 3: + message.lines = reader.uint64(); + break; + case 4: + message.token = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -23114,41 +23841,54 @@ }; /** - * Verifies a ListAgentsRequest message. + * Verifies a GetTaskLogsRequest message. * @function verify - * @memberof flyteidl.admin.ListAgentsRequest + * @memberof flyteidl.admin.GetTaskLogsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAgentsRequest.verify = function verify(message) { + GetTaskLogsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + if (message.lines != null && message.hasOwnProperty("lines")) + if (!$util.isInteger(message.lines) && !(message.lines && $util.isInteger(message.lines.low) && $util.isInteger(message.lines.high))) + return "lines: integer|Long expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; return null; }; - return ListAgentsRequest; + return GetTaskLogsRequest; })(); - admin.ListAgentsResponse = (function() { + admin.GetTaskLogsResponse = (function() { /** - * Properties of a ListAgentsResponse. + * Properties of a GetTaskLogsResponse. * @memberof flyteidl.admin - * @interface IListAgentsResponse - * @property {Array.|null} [agents] ListAgentsResponse agents + * @interface IGetTaskLogsResponse + * @property {Array.|null} [results] GetTaskLogsResponse results + * @property {string|null} [token] GetTaskLogsResponse token */ /** - * Constructs a new ListAgentsResponse. + * Constructs a new GetTaskLogsResponse. * @memberof flyteidl.admin - * @classdesc Represents a ListAgentsResponse. - * @implements IListAgentsResponse + * @classdesc Represents a GetTaskLogsResponse. + * @implements IGetTaskLogsResponse * @constructor - * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set + * @param {flyteidl.admin.IGetTaskLogsResponse=} [properties] Properties to set */ - function ListAgentsResponse(properties) { - this.agents = []; + function GetTaskLogsResponse(properties) { + this.results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23156,65 +23896,78 @@ } /** - * ListAgentsResponse agents. - * @member {Array.} agents - * @memberof flyteidl.admin.ListAgentsResponse + * GetTaskLogsResponse results. + * @member {Array.} results + * @memberof flyteidl.admin.GetTaskLogsResponse * @instance */ - ListAgentsResponse.prototype.agents = $util.emptyArray; + GetTaskLogsResponse.prototype.results = $util.emptyArray; /** - * Creates a new ListAgentsResponse instance using the specified properties. + * GetTaskLogsResponse token. + * @member {string} token + * @memberof flyteidl.admin.GetTaskLogsResponse + * @instance + */ + GetTaskLogsResponse.prototype.token = ""; + + /** + * Creates a new GetTaskLogsResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.ListAgentsResponse + * @memberof flyteidl.admin.GetTaskLogsResponse * @static - * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse instance + * @param {flyteidl.admin.IGetTaskLogsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsResponse} GetTaskLogsResponse instance */ - ListAgentsResponse.create = function create(properties) { - return new ListAgentsResponse(properties); + GetTaskLogsResponse.create = function create(properties) { + return new GetTaskLogsResponse(properties); }; /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. + * Encodes the specified GetTaskLogsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.ListAgentsResponse + * @memberof flyteidl.admin.GetTaskLogsResponse * @static - * @param {flyteidl.admin.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {flyteidl.admin.IGetTaskLogsResponse} message GetTaskLogsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAgentsResponse.encode = function encode(message, writer) { + GetTaskLogsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.agents != null && message.agents.length) - for (var i = 0; i < message.agents.length; ++i) - $root.flyteidl.admin.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); return writer; }; /** - * Decodes a ListAgentsResponse message from the specified reader or buffer. + * Decodes a GetTaskLogsResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.ListAgentsResponse + * @memberof flyteidl.admin.GetTaskLogsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse + * @returns {flyteidl.admin.GetTaskLogsResponse} GetTaskLogsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAgentsResponse.decode = function decode(reader, length) { + GetTaskLogsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.agents && message.agents.length)) - message.agents = []; - message.agents.push($root.flyteidl.admin.Agent.decode(reader, reader.uint32())); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + case 2: + message.token = reader.string(); break; default: reader.skipType(tag & 7); @@ -23225,29 +23978,30 @@ }; /** - * Verifies a ListAgentsResponse message. + * Verifies a GetTaskLogsResponse message. * @function verify - * @memberof flyteidl.admin.ListAgentsResponse + * @memberof flyteidl.admin.GetTaskLogsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAgentsResponse.verify = function verify(message) { + GetTaskLogsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.agents != null && message.hasOwnProperty("agents")) { - if (!Array.isArray(message.agents)) - return "agents: array expected"; - for (var i = 0; i < message.agents.length; ++i) { - var error = $root.flyteidl.admin.Agent.verify(message.agents[i]); - if (error) - return "agents." + error; - } + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; return null; }; - return ListAgentsResponse; + return GetTaskLogsResponse; })(); admin.ClusterAssignment = (function() { @@ -49061,6 +49815,72 @@ * @variation 2 */ + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskMetrics}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef GetTaskMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetTaskMetricsResponse} [response] GetTaskMetricsResponse + */ + + /** + * Calls GetTaskMetrics. + * @function getTaskMetrics + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskMetricsRequest} request GetTaskMetricsRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.GetTaskMetricsCallback} callback Node-style callback called with the error, if any, and GetTaskMetricsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.getTaskMetrics = function getTaskMetrics(request, callback) { + return this.rpcCall(getTaskMetrics, $root.flyteidl.admin.GetTaskMetricsRequest, $root.flyteidl.admin.GetTaskMetricsResponse, request, callback); + }, "name", { value: "GetTaskMetrics" }); + + /** + * Calls GetTaskMetrics. + * @function getTaskMetrics + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskMetricsRequest} request GetTaskMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskLogs}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef GetTaskLogsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetTaskLogsResponse} [response] GetTaskLogsResponse + */ + + /** + * Calls GetTaskLogs. + * @function getTaskLogs + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskLogsRequest} request GetTaskLogsRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.GetTaskLogsCallback} callback Node-style callback called with the error, if any, and GetTaskLogsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.getTaskLogs = function getTaskLogs(request, callback) { + return this.rpcCall(getTaskLogs, $root.flyteidl.admin.GetTaskLogsRequest, $root.flyteidl.admin.GetTaskLogsResponse, request, callback); + }, "name", { value: "GetTaskLogs" }); + + /** + * Calls GetTaskLogs. + * @function getTaskLogs + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskLogsRequest} request GetTaskLogsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return AsyncAgentService; })(); diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index 5d515cb0c4..b2d282011b 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -13,12 +13,14 @@ from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\"\x98\x05\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"z\n\x12\x43reateTaskResponse\x12%\n\rresource_meta\x18\x01 \x01(\x0cH\x00R\x0cresourceMeta\x12\x36\n\x08resource\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.ResourceH\x00R\x08resourceB\x05\n\x03res\"R\n\x0eGetTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xbb\x01\n\x08Resource\x12+\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"U\n\x11\x44\x65leteTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"M\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x30\n\x14supported_task_types\x18\x02 \x03(\tR\x12supportedTaskTypes\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x05\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"z\n\x12\x43reateTaskResponse\x12%\n\rresource_meta\x18\x01 \x01(\x0cH\x00R\x0cresourceMeta\x12\x36\n\x08resource\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.ResourceH\x00R\x08resourceB\x05\n\x03res\"R\n\x0eGetTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xbb\x01\n\x08Resource\x12+\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"U\n\x11\x44\x65leteTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"M\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x30\n\x14supported_task_types\x18\x02 \x03(\tR\x12supportedTaskTypes\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\x94\x02\n\x15GetTaskMetricsRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x82\x01\n\x12GetTaskLogsRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"E\n\x13GetTaskLogsResponse\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,38 +35,46 @@ _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._options = None _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' - _globals['_STATE']._serialized_start=2032 - _globals['_STATE']._serialized_end=2126 - _globals['_TASKEXECUTIONMETADATA']._serialized_start=198 - _globals['_TASKEXECUTIONMETADATA']._serialized_end=862 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=668 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=725 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=727 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=789 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=791 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=862 - _globals['_CREATETASKREQUEST']._serialized_start=865 - _globals['_CREATETASKREQUEST']._serialized_end=1124 - _globals['_CREATETASKRESPONSE']._serialized_start=1126 - _globals['_CREATETASKRESPONSE']._serialized_end=1248 - _globals['_GETTASKREQUEST']._serialized_start=1250 - _globals['_GETTASKREQUEST']._serialized_end=1332 - _globals['_GETTASKRESPONSE']._serialized_start=1334 - _globals['_GETTASKRESPONSE']._serialized_end=1458 - _globals['_RESOURCE']._serialized_start=1461 - _globals['_RESOURCE']._serialized_end=1648 - _globals['_DELETETASKREQUEST']._serialized_start=1650 - _globals['_DELETETASKREQUEST']._serialized_end=1735 - _globals['_DELETETASKRESPONSE']._serialized_start=1737 - _globals['_DELETETASKRESPONSE']._serialized_end=1757 - _globals['_AGENT']._serialized_start=1759 - _globals['_AGENT']._serialized_end=1836 - _globals['_GETAGENTREQUEST']._serialized_start=1838 - _globals['_GETAGENTREQUEST']._serialized_end=1875 - _globals['_GETAGENTRESPONSE']._serialized_start=1877 - _globals['_GETAGENTRESPONSE']._serialized_end=1940 - _globals['_LISTAGENTSREQUEST']._serialized_start=1942 - _globals['_LISTAGENTSREQUEST']._serialized_end=1961 - _globals['_LISTAGENTSRESPONSE']._serialized_start=1963 - _globals['_LISTAGENTSRESPONSE']._serialized_end=2030 + _globals['_STATE']._serialized_start=2668 + _globals['_STATE']._serialized_end=2762 + _globals['_TASKEXECUTIONMETADATA']._serialized_start=261 + _globals['_TASKEXECUTIONMETADATA']._serialized_end=925 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=731 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=788 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=790 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=852 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=854 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=925 + _globals['_CREATETASKREQUEST']._serialized_start=928 + _globals['_CREATETASKREQUEST']._serialized_end=1187 + _globals['_CREATETASKRESPONSE']._serialized_start=1189 + _globals['_CREATETASKRESPONSE']._serialized_end=1311 + _globals['_GETTASKREQUEST']._serialized_start=1313 + _globals['_GETTASKREQUEST']._serialized_end=1395 + _globals['_GETTASKRESPONSE']._serialized_start=1397 + _globals['_GETTASKRESPONSE']._serialized_end=1521 + _globals['_RESOURCE']._serialized_start=1524 + _globals['_RESOURCE']._serialized_end=1711 + _globals['_DELETETASKREQUEST']._serialized_start=1713 + _globals['_DELETETASKREQUEST']._serialized_end=1798 + _globals['_DELETETASKRESPONSE']._serialized_start=1800 + _globals['_DELETETASKRESPONSE']._serialized_end=1820 + _globals['_AGENT']._serialized_start=1822 + _globals['_AGENT']._serialized_end=1899 + _globals['_GETAGENTREQUEST']._serialized_start=1901 + _globals['_GETAGENTREQUEST']._serialized_end=1938 + _globals['_GETAGENTRESPONSE']._serialized_start=1940 + _globals['_GETAGENTRESPONSE']._serialized_end=2003 + _globals['_LISTAGENTSREQUEST']._serialized_start=2005 + _globals['_LISTAGENTSREQUEST']._serialized_end=2024 + _globals['_LISTAGENTSRESPONSE']._serialized_start=2026 + _globals['_LISTAGENTSRESPONSE']._serialized_end=2093 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=2096 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=2372 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=2374 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=2462 + _globals['_GETTASKLOGSREQUEST']._serialized_start=2465 + _globals['_GETTASKLOGSREQUEST']._serialized_end=2595 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=2597 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=2666 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 3b80e41b58..2d7254090f 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -1,8 +1,10 @@ from flyteidl.core import literals_pb2 as _literals_pb2 from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 from flyteidl.core import identifier_pb2 as _identifier_pb2 from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import metrics_pb2 as _metrics_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor @@ -150,3 +152,45 @@ class ListAgentsResponse(_message.Message): AGENTS_FIELD_NUMBER: _ClassVar[int] agents: _containers.RepeatedCompositeFieldContainer[Agent] def __init__(self, agents: _Optional[_Iterable[_Union[Agent, _Mapping]]] = ...) -> None: ... + +class GetTaskMetricsRequest(_message.Message): + __slots__ = ["task_type", "resource_meta", "queries", "start_time", "end_time", "step"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + QUERIES_FIELD_NUMBER: _ClassVar[int] + START_TIME_FIELD_NUMBER: _ClassVar[int] + END_TIME_FIELD_NUMBER: _ClassVar[int] + STEP_FIELD_NUMBER: _ClassVar[int] + task_type: str + resource_meta: bytes + queries: _containers.RepeatedScalarFieldContainer[str] + start_time: _timestamp_pb2.Timestamp + end_time: _timestamp_pb2.Timestamp + step: _duration_pb2.Duration + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class GetTaskMetricsResponse(_message.Message): + __slots__ = ["results"] + RESULTS_FIELD_NUMBER: _ClassVar[int] + results: _containers.RepeatedCompositeFieldContainer[_metrics_pb2.ExecutionMetricResult] + def __init__(self, results: _Optional[_Iterable[_Union[_metrics_pb2.ExecutionMetricResult, _Mapping]]] = ...) -> None: ... + +class GetTaskLogsRequest(_message.Message): + __slots__ = ["task_type", "resource_meta", "lines", "token"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + LINES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + task_type: str + resource_meta: bytes + lines: int + token: str + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ...) -> None: ... + +class GetTaskLogsResponse(_message.Message): + __slots__ = ["results", "token"] + RESULTS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + results: _containers.RepeatedScalarFieldContainer[str] + token: str + def __init__(self, results: _Optional[_Iterable[str]] = ..., token: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py index 1dc42f4b3c..4624badde3 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py @@ -13,9 +13,10 @@ from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/metrics.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x03\n\x04Span\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12M\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\nworkflowId\x12\x41\n\x07node_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x06nodeId\x12\x41\n\x07task_id\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x06taskId\x12#\n\x0coperation_id\x18\x06 \x01(\tH\x00R\x0boperationId\x12)\n\x05spans\x18\x07 \x03(\x0b\x32\x13.flyteidl.core.SpanR\x05spansB\x04\n\x02idB\xb2\x01\n\x11\x63om.flyteidl.coreB\x0cMetricsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/metrics.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa3\x03\n\x04Span\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12M\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\nworkflowId\x12\x41\n\x07node_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x06nodeId\x12\x41\n\x07task_id\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x06taskId\x12#\n\x0coperation_id\x18\x06 \x01(\tH\x00R\x0boperationId\x12)\n\x05spans\x18\x07 \x03(\x0b\x32\x13.flyteidl.core.SpanR\x05spansB\x04\n\x02id\"\\\n\x15\x45xecutionMetricResult\x12\x16\n\x06metric\x18\x01 \x01(\tR\x06metric\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x04\x64\x61taB\xb2\x01\n\x11\x63om.flyteidl.coreB\x0cMetricsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,6 +25,8 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014MetricsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_SPAN']._serialized_start=112 - _globals['_SPAN']._serialized_end=531 + _globals['_SPAN']._serialized_start=142 + _globals['_SPAN']._serialized_end=561 + _globals['_EXECUTIONMETRICRESULT']._serialized_start=563 + _globals['_EXECUTIONMETRICRESULT']._serialized_end=655 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi index d529fd64e5..5e3c7d871e 100644 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi @@ -1,5 +1,6 @@ from flyteidl.core import identifier_pb2 as _identifier_pb2 from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -24,3 +25,11 @@ class Span(_message.Message): operation_id: str spans: _containers.RepeatedCompositeFieldContainer[Span] def __init__(self, start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., node_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., operation_id: _Optional[str] = ..., spans: _Optional[_Iterable[_Union[Span, _Mapping]]] = ...) -> None: ... + +class ExecutionMetricResult(_message.Message): + __slots__ = ["metric", "data"] + METRIC_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + metric: str + data: _struct_pb2.Struct + def __init__(self, metric: _Optional[str] = ..., data: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py index f1234012be..4a1a3d8f70 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -15,7 +15,7 @@ from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\x8f\x02\n\x11\x41syncAgentService\x12U\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x00\x12L\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"\x00\x12U\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"\x00\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xcc\x03\n\x11\x41syncAgentService\x12U\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x00\x12L\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"\x00\x12U\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"\x00\x12\x61\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"\x00\x12X\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"\x00\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -29,7 +29,7 @@ _AGENTMETADATASERVICE.methods_by_name['ListAgents']._options = None _AGENTMETADATASERVICE.methods_by_name['ListAgents']._serialized_options = b'\202\323\344\223\002\020\022\016/api/v1/agents' _globals['_ASYNCAGENTSERVICE']._serialized_start=109 - _globals['_ASYNCAGENTSERVICE']._serialized_end=380 - _globals['_AGENTMETADATASERVICE']._serialized_start=383 - _globals['_AGENTMETADATASERVICE']._serialized_end=623 + _globals['_ASYNCAGENTSERVICE']._serialized_end=569 + _globals['_AGENTMETADATASERVICE']._serialized_start=572 + _globals['_AGENTMETADATASERVICE']._serialized_end=812 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py index 94f75b1682..7d04b0cd33 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py @@ -30,6 +30,16 @@ def __init__(self, channel): request_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.SerializeToString, response_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.FromString, ) + self.GetTaskMetrics = channel.unary_unary( + '/flyteidl.service.AsyncAgentService/GetTaskMetrics', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsResponse.FromString, + ) + self.GetTaskLogs = channel.unary_unary( + '/flyteidl.service.AsyncAgentService/GetTaskLogs', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsResponse.FromString, + ) class AsyncAgentServiceServicer(object): @@ -57,6 +67,24 @@ def DeleteTask(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def GetTaskMetrics(self, request, context): + """GetTaskMetrics returns one or more task execution metrics, if available. + + Errors include + * OutOfRange if metrics are not available for the specified task time range + * various other errors + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTaskLogs(self, request, context): + """GetTaskLogs returns task execution logs, if available. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_AsyncAgentServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -75,6 +103,16 @@ def add_AsyncAgentServiceServicer_to_server(servicer, server): request_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.FromString, response_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.SerializeToString, ), + 'GetTaskMetrics': grpc.unary_unary_rpc_method_handler( + servicer.GetTaskMetrics, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsResponse.SerializeToString, + ), + 'GetTaskLogs': grpc.unary_unary_rpc_method_handler( + servicer.GetTaskLogs, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'flyteidl.service.AsyncAgentService', rpc_method_handlers) @@ -137,6 +175,40 @@ def DeleteTask(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def GetTaskMetrics(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/GetTaskMetrics', + flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTaskLogs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/GetTaskLogs', + flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + class AgentMetadataServiceStub(object): """AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index dc1b065bfa..8240e5ef3b 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -156,6 +156,68 @@ pub struct ListAgentsResponse { #[prost(message, repeated, tag="1")] pub agents: ::prost::alloc::vec::Vec, } +/// A request to get the metrics from a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskMetricsRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, + /// The metrics to query. If empty, will return a default set of metrics. + /// e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG + #[prost(string, repeated, tag="3")] + pub queries: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Start timestamp, inclusive. + #[prost(message, optional, tag="4")] + pub start_time: ::core::option::Option<::prost_types::Timestamp>, + /// End timestamp, inclusive.. + #[prost(message, optional, tag="5")] + pub end_time: ::core::option::Option<::prost_types::Timestamp>, + /// Query resolution step width in duration format or float number of seconds. + #[prost(message, optional, tag="6")] + pub step: ::core::option::Option<::prost_types::Duration>, +} +/// A response containing a list of metrics for a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskMetricsResponse { + /// The execution metric results. + #[prost(message, repeated, tag="1")] + pub results: ::prost::alloc::vec::Vec, +} +/// A request to get the log from a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, + /// Number of lines to return. + #[prost(uint64, tag="3")] + pub lines: u64, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, +} +/// A response containing the logs for a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsResponse { + /// The execution log results. + #[prost(string, repeated, tag="1")] + pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} /// The state of the execution is used to control its visibility in the UI/CLI. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs index 75bb7f2f64..2685b3baff 100644 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -2028,6 +2028,58 @@ pub mod quality_of_service { Spec(super::QualityOfServiceSpec), } } +/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation +/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more +/// precise definitions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Span { + /// start_time defines the instance this span began. + #[prost(message, optional, tag="1")] + pub start_time: ::core::option::Option<::prost_types::Timestamp>, + /// end_time defines the instance this span completed. + #[prost(message, optional, tag="2")] + pub end_time: ::core::option::Option<::prost_types::Timestamp>, + /// spans defines a collection of Spans that breakdown this execution. + #[prost(message, repeated, tag="7")] + pub spans: ::prost::alloc::vec::Vec, + #[prost(oneof="span::Id", tags="3, 4, 5, 6")] + pub id: ::core::option::Option, +} +/// Nested message and enum types in `Span`. +pub mod span { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Id { + /// workflow_id is the id of the workflow execution this Span represents. + #[prost(message, tag="3")] + WorkflowId(super::WorkflowExecutionIdentifier), + /// node_id is the id of the node execution this Span represents. + #[prost(message, tag="4")] + NodeId(super::NodeExecutionIdentifier), + /// task_id is the id of the task execution this Span represents. + #[prost(message, tag="5")] + TaskId(super::TaskExecutionIdentifier), + /// operation_id is the id of a unique operation that this Span represents. + #[prost(string, tag="6")] + OperationId(::prost::alloc::string::String), + } +} +/// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionMetricResult { + /// The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. + #[prost(string, tag="1")] + pub metric: ::prost::alloc::string::String, + /// The result data in prometheus range query result format + /// + /// This may include multiple time series, differentiated by their metric labels. + /// Start time is greater of (execution attempt start, 48h ago) + /// End time is lesser of (execution attempt end, now) + #[prost(message, optional, tag="2")] + pub data: ::core::option::Option<::prost_types::Struct>, +} /// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. /// Each expression results in a boolean result. #[allow(clippy::derive_partial_eq_without_eq)] @@ -2742,43 +2794,6 @@ impl CatalogCacheStatus { } } } -/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation -/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more -/// precise definitions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Span { - /// start_time defines the instance this span began. - #[prost(message, optional, tag="1")] - pub start_time: ::core::option::Option<::prost_types::Timestamp>, - /// end_time defines the instance this span completed. - #[prost(message, optional, tag="2")] - pub end_time: ::core::option::Option<::prost_types::Timestamp>, - /// spans defines a collection of Spans that breakdown this execution. - #[prost(message, repeated, tag="7")] - pub spans: ::prost::alloc::vec::Vec, - #[prost(oneof="span::Id", tags="3, 4, 5, 6")] - pub id: ::core::option::Option, -} -/// Nested message and enum types in `Span`. -pub mod span { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Id { - /// workflow_id is the id of the workflow execution this Span represents. - #[prost(message, tag="3")] - WorkflowId(super::WorkflowExecutionIdentifier), - /// node_id is the id of the node execution this Span represents. - #[prost(message, tag="4")] - NodeId(super::NodeExecutionIdentifier), - /// task_id is the id of the task execution this Span represents. - #[prost(message, tag="5")] - TaskId(super::TaskExecutionIdentifier), - /// operation_id is the id of a unique operation that this Span represents. - #[prost(string, tag="6")] - OperationId(::prost::alloc::string::String), - } -} /// Describes a set of tasks to execute and how the final outputs are produced. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 778fcc99d0..601e8b61e6 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -5,9 +5,12 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin import "flyteidl/core/literals.proto"; import "flyteidl/core/tasks.proto"; -import "flyteidl/core/interface.proto"; import "flyteidl/core/identifier.proto"; import "flyteidl/core/execution.proto"; +import "flyteidl/core/metrics.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + // The state of the execution is used to control its visibility in the UI/CLI. enum State { @@ -125,3 +128,48 @@ message ListAgentsRequest {} message ListAgentsResponse { repeated Agent agents = 1; } + +// A request to get the metrics from a task execution. +message GetTaskMetricsRequest { + // A predefined yet extensible Task type identifier. + string task_type = 1; + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 2; + // The metrics to query. If empty, will return a default set of metrics. + // e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG + repeated string queries = 3; + // Start timestamp, inclusive. + google.protobuf.Timestamp start_time = 4; + // End timestamp, inclusive.. + google.protobuf.Timestamp end_time = 5; + // Query resolution step width in duration format or float number of seconds. + google.protobuf.Duration step = 6; +} + +// A response containing a list of metrics for a task execution. +message GetTaskMetricsResponse { + // The execution metric results. + repeated core.ExecutionMetricResult results = 1; +} + +// A request to get the log from a task execution. +message GetTaskLogsRequest { + // A predefined yet extensible Task type identifier. + string task_type = 1; + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 2; + // Number of lines to return. + uint64 lines = 3; + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 4; +} + +// A response containing the logs for a task execution. +message GetTaskLogsResponse { + // The execution log results. + repeated string results = 1; + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/core/metrics.proto b/flyteidl/protos/flyteidl/core/metrics.proto index 13823545e4..5244ff4873 100644 --- a/flyteidl/protos/flyteidl/core/metrics.proto +++ b/flyteidl/protos/flyteidl/core/metrics.proto @@ -6,6 +6,7 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" import "flyteidl/core/identifier.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/struct.proto"; // Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation // which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more @@ -34,3 +35,16 @@ message Span { // spans defines a collection of Spans that breakdown this execution. repeated Span spans = 7; } + +// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. +message ExecutionMetricResult { + // The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. + string metric = 1; + + // The result data in prometheus range query result format + // https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats. + // This may include multiple time series, differentiated by their metric labels. + // Start time is greater of (execution attempt start, 48h ago) + // End time is lesser of (execution attempt end, now) + google.protobuf.Struct data = 2; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index eba19e496c..7538c0b819 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -14,6 +14,16 @@ service AsyncAgentService { rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){}; // Delete the task resource. rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){}; + + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // * OutOfRange if metrics are not available for the specified task time range + // * various other errors + rpc GetTaskMetrics(flyteidl.admin.GetTaskMetricsRequest) returns (flyteidl.admin.GetTaskMetricsResponse){}; + + // GetTaskLogs returns task execution logs, if available. + rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (flyteidl.admin.GetTaskLogsResponse){}; } // AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index 827af0d907..a2b2135591 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -40,9 +40,25 @@ type MockPlugin struct { type MockAsyncTask struct { } +func (m *MockAsyncTask) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { + panic("not implemented") +} + +func (m *MockAsyncTask) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { + panic("not implemented") +} + type MockSyncTask struct { } +func (m *MockSyncTask) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { + panic("not implemented") +} + +func (m *MockSyncTask) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { + panic("not implemented") +} + func (m *MockAsyncTask) CreateTask(_ context.Context, createTaskRequest *admin.CreateTaskRequest, _ ...grpc.CallOption) (*admin.CreateTaskResponse, error) { expectedArgs := []string{"pyflyte-fast-execute", "--output-prefix", "fake://bucket/prefix/nhv"} if slices.Equal(createTaskRequest.Template.GetContainer().Args, expectedArgs) {